rgb.average
code:Lua
c = textmodule.rgb.average(n1, n2)
c = textmodule.rgb.average(hex1, hex2)
c = textmodule.rgb.average(vec1, vec2)
c = textmodule.rgb.average(c1, c2)
モジュール
引数
table:1
変数 型 概要
1 n1 number 数値(0 - 16777215)
2 n2 number 数値(0 - 16777215)
table:2
変数 型 概要
1 hex1 string 16進数の値("0x000000" - "0xffffff")
2 hex2 string 16進数の値("0x000000" - "0xffffff")
table:3
変数 型 概要
table:4
変数 型 概要
返り値
table:_
変数 型 概要
概要
2つの色の各要素の平均値を取得して、RGBクラスとして返す。