Difference between revisions of "love.graphics.setColorMask"

m (Fixed newin link)
m (Fixed i18n link)
Line 31: Line 31:
 
{{#set:Sub-Category=State}}
 
{{#set:Sub-Category=State}}
 
== Other Languages ==
 
== Other Languages ==
{{i18n|love.graphics.setColorMode}}
+
{{i18n|love.graphics.setColorMask}}

Revision as of 09:07, 8 September 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