Packagestarling.filters
Classpublic class CompositeMode
InheritanceCompositeMode Inheritance Object

An enumeration class with the available modes that are offered by the CompositeFilter to draw layers on top of each other.

See also

starling.filters.CompositeFilter


Public Methods
 MethodDefined By
  
getIndex(mode:String):int
[static] Returns a different integer for each mode.
CompositeMode
Public Constants
 ConstantDefined By
  INSIDE : String = inside
[static] Draw layer on top of the destination using the destination's alpha value.
CompositeMode
  INSIDE_KNOCKOUT : String = insideKnockout
[static] Draw only the new layer (erasing the old), using the destination's alpha value.
CompositeMode
  NORMAL : String = normal
[static] Draw layer on top of destination.
CompositeMode
  OUTSIDE : String = outside
[static] Draw layer on top of the destination, using the destination's inverted alpha value.
CompositeMode
  OUTSIDE_KNOCKOUT : String = outsideKnockout
[static] Draw only the new layer (erasing the old), using the destination's inverted alpha value.
CompositeMode
Method Detail
getIndex()method
public static function getIndex(mode:String):int

Returns a different integer for each mode.

Parameters

mode:String

Returns
int
Constant Detail
INSIDEConstant
public static const INSIDE:String = inside

Draw layer on top of the destination using the destination's alpha value. src × dst.alpha + dst × (1 - src.alpha)

INSIDE_KNOCKOUTConstant 
public static const INSIDE_KNOCKOUT:String = insideKnockout

Draw only the new layer (erasing the old), using the destination's alpha value. src × dst.alpha

NORMALConstant 
public static const NORMAL:String = normal

Draw layer on top of destination. Corresponds to BlendMode.NORMAL. src + dst × (1 - src.alpha)

OUTSIDEConstant 
public static const OUTSIDE:String = outside

Draw layer on top of the destination, using the destination's inverted alpha value. src × (1 - dst.alpha) + dst

OUTSIDE_KNOCKOUTConstant 
public static const OUTSIDE_KNOCKOUT:String = outsideKnockout

Draw only the new layer (erasing the old), using the destination's inverted alpha value. src × (1 - dst.alpha)