BlendMode class

A class that provides constant values for visual blend mode effects.

Constructors

BlendMode(int srcFactor, int dstFactor, String compositeOperation)
const

Properties

compositeOperation String
final
dstFactor int
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
srcFactor int
final

Methods

blend(RenderingContext renderingContext) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

ABOVE → const BlendMode
The display object appears above the background. Pixel values of the display object are invisible where the backround is transparent.
ADD → const BlendMode
Adds the values of the constituent colors of the display object to the colors of its background, applying a ceiling of 0xFF.
BELOW → const BlendMode
The display object appears in behind the background. Pixel values of the background object override those of the display object. Where the background is transparent, the display object is visible.
ERASE → const BlendMode
Erases the background based on the alpha value of the display object.
MULTIPLY → const BlendMode
Multiplies the values of the display object constituent colors by the colors of the background color, and then normalizes by dividing by 0xFF, resulting in darker colors.
NONE → const BlendMode
Works only in WebGL and may improve performance for big background images withoug alpha. The source pixels are not blended with the destination pixels and therefore the GPU does not read the color from the destination pixels.
NORMAL → const BlendMode
The display object appears in front of the background. Pixel values of the display object override those of the background. Where the display object is transparent, the background is visible.
SCREEN → const BlendMode
Multiplies the complement (inverse) of the display object color by the complement of the background color, resulting in a bleaching effect.