color.RGB
1.2.6で削除
code:Lua
col = textmodule.color.RGB(r, g, b)
r, g, b = textmodule.color.RGB(color)
モジュール
color
引数
table:1
変数 型 概要
1 r number RGB値(R)
2 g number RGB値(G)
3 b number RGB値(B)
table:2
変数 型 概要
1 col number / string RGB値(16進数)
返り値
table:1
変数 型 概要
1 col string RGB値(16進数)
table:2
変数 型 概要
1 r number RGB値(R)
2 g number RGB値(G)
3 b number RGB値(B)
概要
文字列 or 数値型の16進数のcol(0x000000~0xffffff)とRGB値を相互に変換する。