Package | starling.filters |
Class | public class CompositeMode |
Inheritance | CompositeMode Object |
See also
Method | Defined By | ||
---|---|---|---|
getIndex(mode:String):int [static] Returns a different integer for each mode. | CompositeMode |
Constant | Defined 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 |
getIndex | () | method |
public static function getIndex(mode:String):int
Returns a different integer for each mode.
Parameters
mode:String |
int |
INSIDE | Constant |
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_KNOCKOUT | Constant |
public static const INSIDE_KNOCKOUT:String = insideKnockout
Draw only the new layer (erasing the old), using the destination's alpha value.
src × dst.alpha
NORMAL | Constant |
public static const NORMAL:String = normal
Draw layer on top of destination. Corresponds to BlendMode.NORMAL.
src + dst × (1 - src.alpha)
OUTSIDE | Constant |
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_KNOCKOUT | Constant |
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)