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
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
ALPHA
• ALPHA = 2
Transparent mode
Defined in
NORMAL
• NORMAL = 3
Normal blend mode
Defined in
ADD
• ADD = 4
Add the values of the component colors of the displayed object to its background color
Defined in
BELOW
• BELOW = 5
Add the values of the component colors of the displayed object to its background color
Defined in
ERASE
• ERASE = 6
Erase the background based on the alpha value of the displayed object.
Defined in
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
SCREEN
• SCREEN = 8
Multiply the inverse of the components of the source and target images, and then calculate the inverse result.
Defined in
DIVD
• DIVD = 9
Defined in
SOFT_ADD
• SOFT_ADD = 10