Files | |
file | color.lua |
color type. | |
file | rgb.lua |
rbg color table name conversion. | |
Functions | |
color_new (var a, var r, var g, var b, var noclip) | |
Create a new color object. | |
color_copy (var c, var s, var noalpha) | |
Copy a color. | |
color_clip (var c, var min, var max) | |
Clip color components. | |
color_lum (var c) | |
Get color luminosity. | |
color_max (var c) | |
Get index of first hightest component. | |
color_min (var color) | |
Get index of first lowest component. | |
color_maximize (var c) | |
Scale color to have the highest component equal to 1. | |
color_tostring (var c) | |
Transform color to string (#AARRBBGG). | |
color_tohexa (var c) | |
Transform color to string (#AARRBBGG). | |
color_concat (var a, var b) | |
color "concat" tag method. | |
color_index (var c, var i) | |
color "index" tag method. | |
color_settable (var c, var i, var v) | |
color "settable" tag method. | |
tostring (var c) | |
color_add (var a, var b) | |
color "add" tag method; "+" operator. | |
color_sub (var a, var b) | |
color "sub" tag method; "-" operator. | |
color_mul (var a, var b) | |
color "mul" tag method; "*" operator. | |
color_div (var a, var b) | |
color "div" tag method; "/" operator. | |
color_minus (var a, var b) | |
color "minus" tag method; unary "-" operator. | |
color_abs (var c) | |
Absolutes color components. | |
color_distant (var c, var alt) | |
Get a distant color. | |
color_sort (var c) | |
Descending sort R,G,B components. | |
Variables | |
color | rgb_color_table [name] |
color name table. |
|
Create a new color object. Creates a new color object from either four numbers or a table of four numbers or a string. Default value is 1 for all components. table can be any table. rawget() function is used to retrieve color components with index 1,2,3,4 for respectively a,r,g,b components. string := "COLOR-NAME". Picks the rgb_color_table[COLOR-NAME], if it exists. This conversion is prior to the hexadecimal string conversion which mean it is possible to short circuit an hexadecimal value to another color. string := "[#][AA]RRGGBB". This is an hexacimal description of the color. It may start by an optional '#' char. Alpha componant is optionnal and its default value is 1.
|
|
Copy a color.
|
|
Clip color components.
|
|
Get color luminosity.
|
|
Get index of first hightest component.
|
|
Get index of first lowest component.
|
|
Scale color to have the highest component equal to 1.
|
|
Transform color to string (#AARRBBGG).
|
|
Transform color to string (#AARRBBGG). This function works kike color_tostring() except it always return a string. The default value is "#00000000".
|
|
color "concat" tag method.
|
|
color "index" tag method.
|
|
color "settable" tag method.
|
|
color "add" tag method; "+" operator.
|
|
color "sub" tag method; "-" operator.
|
|
color "mul" tag method; "*" operator.
|
|
color "div" tag method; "/" operator.
|
|
color "minus" tag method; unary "-" operator.
|
|
Absolutes color components.
|
|
Get a distant color.
|
|
Descending sort R,G,B components.
|
dcplaya documentation version 2.0 | Generated on November 2004 by doxygen 1.3.6 |