{{newin (日本語)|[[0.8.0 (日本語)|0.8.0]]|080|type=メソッド}}
Sets the color that will be used for the next add and set operations. Calling the function without arguments will disable all per-sprite colors for the SpriteBatch.

バージョン [[11.0 (日本語)|11.0]] まで、色成分値は 0 〜 1 (小数値) ではなく 0 〜 255 (整数値) の範囲内です。

In version [[0.9.2]] and older, the global color set with love.graphics.setColor will not work on the SpriteBatch if any of the sprites has its own color.

== 関数 ==
=== 概要 ===
<source lang="lua">
SpriteBatch:setColor( r, g, b, a )
</source>
=== 引数 ===
{{param (日本語)|number|r|The amount of red.}}
{{param (日本語)|number|g|The amount of green.}}
{{param (日本語)|number|b|The amount of blue.}}
{{param (日本語)|number|a (1)|The amount of alpha.}}
=== 返値 ===
ありません。

== 関数 ==
Disables all per-sprite colors for this SpriteBatch.
=== 概要 ===
<source lang="lua">
SpriteBatch:setColor( )
</source>
=== 引数 ===
なし。
=== 返値 ===
ありません。

== 関連 ==
* [[parent::SpriteBatch (日本語)]]
* [[SpriteBatch:getColor (日本語)]]
* [[SpriteBatch:add (日本語)]]
* [[SpriteBatch:set (日本語)]]
[[Category:Functions (日本語)]]
{{#set:Description=Sets the color that will be used for the next add or set operations.}}
{{#set:Since=080}}
== そのほかの言語 ==
{{i18n (日本語)|SpriteBatch:setColor}}