love.graphics.setColorMask

love.graphics.setColorMask

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

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


doc_love
2017-03-21 15:48:10
Comments
Leave a Comment

Please login to continue.