rgb.new
code:Lua
c = textmodule.rgb.new(n1, n2, n3)
c = textmodule.rgb.new(num)
c = textmodule.rgb.new(hex)
c = textmodule.rgb.new(c1)
c = textmodule.rgb.new(vec)
モジュール
引数
table:1
変数 型 概要
1 n1 number R成分(0-255 / 整数)
2 n2 number G成分(0-255 / 整数)
3 n3 number B成分(0-255 / 整数)
table:2
変数 型 概要
1 num number 数値(0-16777215 / 整数)
table:3
変数 型 概要
1 hex number 数値を文字列の16進数で表したもの("0x000000"-"0xffffff")
table:4
変数 型 概要
table:5
変数 型 概要
返り値
table:_
変数 型 概要
概要
与えられた値から、RGBクラスを生成する。