Different ways to do color blending. See BlendAlphaMode and the BlendMode Formulas for additional notes.
Constants
- alpha
- Alpha blending (normal). The alpha of what's drawn determines its opacity.
Available since LÖVE 0.9.0
|
This constant is not supported in earlier versions.
|
- replace
- The colors of what's drawn completely replace what was on the screen, with no additional blending.
Available since LÖVE 0.9.1
|
This constant is not supported in earlier versions.
|
- screen
- 'Screen' blending.
Available since LÖVE 0.10.0
|
These constants are not supported in earlier versions.
|
- add
- The pixel colors of what's drawn are added to the pixel colors already on the screen. The alpha of the screen is not modified.
- subtract
- The pixel colors of what's drawn are subtracted from the pixel colors already on the screen. The alpha of the screen is not modified.
- multiply
- The pixel colors of what's drawn are multiplied with the pixel colors already on the screen (darkening them). The alpha of drawn objects is multiplied with the alpha of the screen rather than determining how much the colors on the screen are affected, even when the "alphamultiply" BlendAlphaMode is used.
Removed in LÖVE 0.10.0
|
These constants are not supported in that and later versions.
|
- additive
- Additive blend mode.
Available since LÖVE 0.7.0 and removed in LÖVE 0.10.0
|
These constants are not supported in earlier or later versions.
|
- subtractive
- Subtractive blend mode.
- multiplicative
- Multiply blend mode.
Available since LÖVE 0.8.0 and removed in LÖVE 0.10.0
|
This constant is not supported in earlier or later versions.
|
- premultiplied
- Premultiplied alpha blend mode.
Example
Source .love
See Also
Other Languages