Difference between revisions of "love.graphics.setColorMask"

m (Added love.graphics.setColorMask() variant)
m (Fixed newin link)
Line 1: Line 1:
{{newin|[[0.9.0]]|0.9.0|type=function}}
+
{{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 ==

Revision as of 04:04, 11 August 2013

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.

Function

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

Synopsis

love.graphics.setColorMask( )

Arguments

None.

Returns

Nothing.

Notes

Enables all color components.

See Also


Other Languages