love.graphics.getColorMask

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


doc_love
2017-03-21 15:47:02
Comments
Leave a Comment

Please login to continue.