Skip to content

Enumeration: BlendMode

Blend mode |name|description|

Enumeration Members

Enumeration Members

NONE

NONE = 0

Working only in WebGPU may improve the performance of large background images without alpha. The source pixel is not mixed with the target pixel, so the GPU will not read colors from the target pixel.

Defined in

src/materials/BlendMode.ts:11


ABOVE

ABOVE = 1

Display objects above the background. When the background is transparent, the pixel values of the displayed object are not visible.

Defined in

src/materials/BlendMode.ts:16


ALPHA

ALPHA = 2

Transparent mode

Defined in

src/materials/BlendMode.ts:21


NORMAL

NORMAL = 3

Normal blend mode

Defined in

src/materials/BlendMode.ts:26


ADD

ADD = 4

Add the values of the component colors of the displayed object to its background color

Defined in

src/materials/BlendMode.ts:31


BELOW

BELOW = 5

Add the values of the component colors of the displayed object to its background color

Defined in

src/materials/BlendMode.ts:36


ERASE

ERASE = 6

Erase the background based on the alpha value of the displayed object.

Defined in

src/materials/BlendMode.ts:40


MUL

MUL = 7

Multiply the values of the displayed object's constituent colors by the background color, and then divide by 0xFF for normalization to obtain a darker color.

Defined in

src/materials/BlendMode.ts:45


SCREEN

SCREEN = 8

Multiply the inverse of the components of the source and target images, and then calculate the inverse result.

Defined in

src/materials/BlendMode.ts:49


DIVD

DIVD = 9

Defined in

src/materials/BlendMode.ts:50


SOFT_ADD

SOFT_ADD = 10

Defined in

src/materials/BlendMode.ts:51