{{newin|[[0.9.0]]|090|type=method}}
Gets the color that will be used for the next add and set operations.

If no color has been set with [[SpriteBatch:setColor]] or the current SpriteBatch color has been cleared, this method will return nil.

バージョン [[11.0 (日本語)|11.0]] まで、色成分値は 0 〜 1 (小数値) ではなく 0 〜 255 (整数値) の範囲内です。
== 関数 ==
=== 概要 ===
<source lang="lua">
r, g, b, a = SpriteBatch:getColor( )
</source>
=== 引数 ===
なし。
=== 返値 ===
{{param (日本語)|number|r|赤色成分 (0-1)}}
{{param (日本語)|number|g|緑色成分 (0-1)}}
{{param (日本語)|number|b|青色成分 (0-1)}}
{{param (日本語)|number|a|アルファ成分 (0-1)}}
== 関連 ==
* [[parent::SpriteBatch (日本語)]]
* [[SpriteBatch:setColor (日本語)]]
[[Category:Functions (日本語)]]
{{#set:Description=Gets the color that will be used for the next add and set operations.}}
== そのほかの言語 ==
{{i18n (日本語)|SpriteBatch:getColor}}