{{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.
== Function ==
Enables color masking for the specified color components.
=== Synopsis ===
<source lang="lua">
love.graphics.setColorMask( red, green, blue, alpha )
</source>
=== Arguments ===
{{param|boolean|red|Render red component.}}
{{param|boolean|green|Render green component.}}
{{param|boolean|blue|Render blue component.}}
{{param|boolean|alpha|Render alpha component.}}
=== Returns ===
Nothing.
== Function ==
Disables color masking.
=== Synopsis ===
<source lang="lua">
love.graphics.setColorMask( )
</source>
=== Arguments ===
None.
=== Returns ===
Nothing.
== See Also ==
* [[parent::love.graphics]]
* [[love.graphics.getColorMask]]
[[Category:Functions]]
{{#set:Description=Sets the color mask. Enables or disables specific color components when rendering.}}
{{#set:Sub-Category=State}}
== Other Languages ==
{{i18n|love.graphics.setColorMask}}