Enumeration

SKBlendMode

The modes that describe how the source and destination pixel colors are used to calculate the new destination color.

Declaration

typedef enum SKBlendMode : NSInteger {
    ...
} SKBlendMode;

Topics

Constants

SKBlendModeAlpha

The source and destination colors are blended by multiplying the source alpha value.

SKBlendModeAdd

The source and destination colors are added together.

SKBlendModeSubtract

The source color is subtracted from the destination color.

SKBlendModeMultiply

The source color is multiplied by the destination color.

SKBlendModeMultiplyX2

The source color is multiplied by the destination color and then doubled.

SKBlendModeScreen

The source color is added to the destination color times the inverted source color.

SKBlendModeReplace

The source color replaces the destination color.

Enumeration Cases

See Also

Configuring Alpha Blendling

Blending a Sprite with Different Interpretations of Alpha

Reinterpret a sprite's alpha property to react differently to the objects below it.

blendMode

The blend mode used to draw the sprite into the parent’s framebuffer.