Difference between revisions of "love.graphics.setColorMask"
m |
m (Add descriptions) |
||
(3 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | {{newin|[[0.9.0]]| | + | {{newin|[[0.9.0]]|090|type=function}} |
Sets the color mask. Enables or disables specific color components when rendering and clearing the screen. For example, if '''red''' is set to '''false''', no further changes will be made to the red component of any pixels. | Sets the color mask. Enables or disables specific color components when rendering and clearing the screen. For example, if '''red''' is set to '''false''', no further changes will be made to the red component of any pixels. | ||
== Function == | == Function == | ||
+ | Enables color masking for the specified color components. | ||
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
Line 11: | Line 12: | ||
{{param|boolean|blue|Render blue component.}} | {{param|boolean|blue|Render blue component.}} | ||
{{param|boolean|alpha|Render alpha component.}} | {{param|boolean|alpha|Render alpha component.}} | ||
+ | === Returns === | ||
+ | Nothing. | ||
+ | == Function == | ||
+ | Disables color masking. | ||
+ | === Synopsis === | ||
+ | <source lang="lua"> | ||
+ | love.graphics.setColorMask( ) | ||
+ | </source> | ||
+ | === Arguments === | ||
+ | None. | ||
=== Returns === | === Returns === | ||
Nothing. | Nothing. | ||
Line 20: | Line 31: | ||
{{#set:Sub-Category=State}} | {{#set:Sub-Category=State}} | ||
== Other Languages == | == Other Languages == | ||
− | {{i18n|love.graphics. | + | {{i18n|love.graphics.setColorMask}} |
Latest revision as of 21:41, 3 August 2016
Available since LÖVE 0.9.0 |
This function is not supported in earlier versions. |
Sets the color mask. Enables or disables specific color components when rendering and clearing the screen. For example, if red is set to false, no further changes will be made to the red component of any pixels.
Contents
Function
Enables color masking for the specified color components.
Synopsis
love.graphics.setColorMask( red, green, blue, alpha )
Arguments
boolean red
- Render red component.
boolean green
- Render green component.
boolean blue
- Render blue component.
boolean alpha
- Render alpha component.
Returns
Nothing.
Function
Disables color masking.
Synopsis
love.graphics.setColorMask( )
Arguments
None.
Returns
Nothing.
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