{{newin (日本語)|[[0.9.0 (日本語)|0.9.0]]|090|type=関数}}
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.
== 関数 ==
Enables color masking for the specified color components.
=== 概要 ===
<source lang="lua">
love.graphics.setColorMask( red, green, blue, alpha )
</source>
=== 引数 ===
{{param (日本語)|boolean|red|Render red component.}}
{{param (日本語)|boolean|green|Render green component.}}
{{param (日本語)|boolean|blue|Render blue component.}}
{{param (日本語)|boolean|alpha|Render alpha component.}}
=== 返値 ===
ありません。
== 関数 ==
Disables color masking.
=== 概要 ===
<source lang="lua">
love.graphics.setColorMask( )
</source>
=== 引数 ===
なし。
=== 返値 ===
ありません。
== 関連 ==
* [[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 (日本語)}}
== そのほかの言語 ==
{{i18n (日本語)|love.graphics.setColorMask}}