Package apple.spritekit.enums
Class SKBlendMode
- java.lang.Object
-
- apple.spritekit.enums.SKBlendMode
-
public final class SKBlendMode extends java.lang.ObjectBlend modes that the SKNode uses to compose with the framebuffer to produce blended colors.
-
-
Field Summary
Fields Modifier and Type Field Description static longAddBlends the source and destination colors by adding them up.static longAlphaBlends the source and destination colors by multiplying the source alpha value.static longMultiplyBlends the source and destination colors by multiplying them.static longMultiplyAlphaBlends the source and destination colors by multiplying them (with alpha).static longMultiplyX2Blends the source and destination colors by multiplying them and doubling the result.static longReplaceReplaces the destination with the source (ignores alpha).static longScreenBlends the source and destination colors by multiplying one minus the source with the destination and adding the source.static longSubtractBlends the source and destination colors by subtracting the source from the destination.
-
-
-
Field Detail
-
Alpha
public static final long Alpha
Blends the source and destination colors by multiplying the source alpha value.- See Also:
- Constant Field Values
-
Add
public static final long Add
Blends the source and destination colors by adding them up.- See Also:
- Constant Field Values
-
Subtract
public static final long Subtract
Blends the source and destination colors by subtracting the source from the destination.- See Also:
- Constant Field Values
-
Multiply
public static final long Multiply
Blends the source and destination colors by multiplying them.- See Also:
- Constant Field Values
-
MultiplyX2
public static final long MultiplyX2
Blends the source and destination colors by multiplying them and doubling the result.- See Also:
- Constant Field Values
-
Screen
public static final long Screen
Blends the source and destination colors by multiplying one minus the source with the destination and adding the source.- See Also:
- Constant Field Values
-
Replace
public static final long Replace
Replaces the destination with the source (ignores alpha).- See Also:
- Constant Field Values
-
MultiplyAlpha
public static final long MultiplyAlpha
Blends the source and destination colors by multiplying them (with alpha).- See Also:
- Constant Field Values
-
-