Difference between revisions of "BlendMode"
m |
m (Remove newin tags for removed constants to avoid confusion.) |
||
Line 14: | Line 14: | ||
{{oldin|[[0.10.0]]|100|type=constants|plural=y}} | {{oldin|[[0.10.0]]|100|type=constants|plural=y}} | ||
;additive: Additive blend mode. | ;additive: Additive blend mode. | ||
− | |||
;subtractive: Subtractive blend mode. | ;subtractive: Subtractive blend mode. | ||
;multiplicative: Multiply blend mode. | ;multiplicative: Multiply blend mode. | ||
− | |||
;premultiplied: Premultiplied alpha blend mode. | ;premultiplied: Premultiplied alpha blend mode. | ||
== Example == | == Example == |
Revision as of 09:08, 17 December 2015
Available since LÖVE 0.2.0 |
This enum is not supported in earlier versions. |
Different ways to do color blending. See BlendAlphaMode and the BlendMode Formulas for additional notes.
Contents
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 component-wise added to the pixel colors already on the screen.
- subtract
- The pixel colors of what's drawn are component-wise subtracted from the pixel colors already on the screen.
- multiply
- The pixel colors of what's drawn are component-wise multiplied with the pixel colors already on the screen (effectively 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 if 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.
- subtractive
- Subtractive blend mode.
- multiplicative
- Multiply blend mode.
- premultiplied
- Premultiplied alpha blend mode.
Example
See Also
- love.graphics
- BlendMode Formulas
- love.graphics.setBlendMode
- love.graphics.getBlendMode
- BlendAlphaMode
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info