Constructor
new BlendMode(modeopt)
Constructor
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
mode |
BlendMode |
<optional> |
Mode to use, preset values. |
Members
number
static Equation
Blend equations
Properties:
Name | Type | Description |
---|---|---|
Add |
number | |
Subtract |
number |
number
static Factor
Blend factors
Properties:
Name | Type | Description |
---|---|---|
DestinationAlpha |
number | |
DestinationColor |
number | |
One |
number | |
OneMinusDestinationAlpha |
number | |
OneMinusDestinationColor |
number | |
OneMinusSourceAlpha |
number | |
OneMinusSourceColor |
number | |
SourceAlpha |
number | |
SourceColor |
number | |
Zero |
number |
number
static Mode
Default modes availables
Properties:
Name | Type | Description |
---|---|---|
Alpha |
number | |
Add |
number | |
Multiply |
number | |
None |
number |
Methods
isEqual(blendMode) → {boolean}
Check if the given BlendMode instance is equal to this one
Parameters:
Name | Type | Description |
---|---|---|
blendMode |
BlendMode | A BlendMode instance |
True if the two blend mode are equals, otherwise false
boolean
setMode(modeopt)
Set blending mode to use: this method erase the previous configuration, be careful
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
mode |
BlendMode.Mode |
<optional> |
Mode to use, preset values |