|
LuaSTG-x Core API
|
Public Member Functions | |
| function | ARGB () |
| function | clone () |
| function | deltaE (local other) |
| function | format (local fmt) |
| function | fromHSI (local h, local s, local i) |
| function | fromHSL (local h, local s, local l) |
| function | fromHSV (local h, local s, local v) |
| function | fromYUV (local y, local cb, local cr) |
| function | gray () |
| function | parse (local s) |
| function | reverse (local rev_alpha) |
| function | set (local r, local g, local b, local a) |
| function | setFloat (local r, local g, local b, local a) |
| function | setHue (local h) |
| function | setLightness (local l) |
| function | setSaturation (local s) |
| function | toHSI () |
| function | toHSL () |
| function | toHSV () |
| function | toLAB () |
| function | toTable () |
| function | toXYZ () |
| function | toYUV () |
| function | unpack () |
| function | unpackFloat () |
Public Attributes | |
| number | a |
| number | argb |
| number | b |
| number | g |
| number | r |
颜色类 有如下元方法: __eq | __add | __sub | __mul | __tostring
| function ARGB | ( | ) |
返回颜色的a,r,g,b分量
| function clone | ( | ) |
returns a copy
| function gray | ( | ) |
| function toHSI | ( | ) |
| function toHSL | ( | ) |
| function toHSV | ( | ) |
| function toLAB | ( | ) |
Gamma=2.2, sRGB, white point D65
| function toTable | ( | ) |
| function toXYZ | ( | ) |
Convert RGB to CIEXYZ.
Gamma=2.2, sRGB
| function toYUV | ( | ) |
| function unpack | ( | ) |
returns r,g,b,a (0-255)
| function unpackFloat | ( | ) |
returns r,g,b,a (0-1)
| number a |
| number argb |
| number b |
| number g |
| number r |