color.HSV
1.2.6で削除
code:Lua
cor = textmodule.color.HSV(h, s, v)
h, s, v = textmodule.color.HSV(col)
モジュール
color
引数
table:1
変数 型 概要
1 h number HSV値(H)
2 s number HSV値(S)
3 v number HSV値(V)
table:2
変数 型 概要
1 col number / string RGB値(16進数)
返り値
table:1
変数 型 概要
1 col string RGB値(16進数)
table:2
変数 型 概要
1 h number HSV値(H)
2 s number HSV値(S)
3 v number HSV値(V)
概要
文字列 or 数値型の16進数のcol(0x000000~0xffffff)とHSV値を相互に変換する。 Hは0~360を、SVはそれぞれ0~100の間をとる。