enum
Eagle::GPU::BlendMode
Overview
How newly drawn pixels combine with what's already there.
Alphais normal transparency, and the default.Additiveadds light, for fire, lasers, glows and sparks.Multiplydarkens, for shadows and tinted glass.Screenlightens more softly thanAdditive.Noneoverwrites, ignoring alpha.
Defined in:
eagle/gpu/device.crEnum Members
-
None =
0 -
Overwrite pixels, ignoring alpha.
-
Alpha =
1 -
Normal transparency.
-
Additive =
2 -
Add color, which brightens. For glows and fire.
-
Multiply =
3 -
Multiply color, which darkens. For shadows and tinted glass.
-
Screen =
4 -
Lighten softly.
Instance Method Summary
-
#additive?
Returns
trueif this enum value equalsAdditive -
#alpha?
Returns
trueif this enum value equalsAlpha -
#multiply?
Returns
trueif this enum value equalsMultiply -
#none?
Returns
trueif this enum value equalsNone -
#screen?
Returns
trueif this enum value equalsScreen