love.graphics.getColorMask
Available since LÖVE 0.9.0 |
This function is not supported in earlier versions. |
Gets the active color components used when drawing. Normally all 4 components are active unless love.graphics.setColorMask has been used.
The color mask determines whether individual components of the colors of drawn objects will affect the color of the screen. They affect love.graphics.clear and Canvas:clear as well.
Function
Synopsis
r, g, b, a = love.graphics.getColorMask( )
Arguments
None.
Returns
boolean r
- Whether the red color component is active when rendering.
boolean g
- Whether the green color component is active when rendering.
boolean b
- Whether the blue color component is active when rendering.
boolean a
- Whether the alpha color component is active when rendering.
See Also
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