Class Color
Tables
| color.instance |
Methods
| color:new (red, green, blue) | |
| color:channels () |
Metamethods
| color:__data () | |
| color:__tostring () |
Tables
Methods
- color:new (red, green, blue)
-
Parameters:
- red number [0, 1]
- green number [0, 1]
- blue number [0, 1]
Returns:
- color:channels ()
-
Returns:
-
{number,number,number}
red, green and blue values in the range [0, 1]
Metamethods
- color:__data ()
-
Returns:
-
tab
table with instance fields
(see the luaserialization library)
- color:__tostring ()
-
Returns:
-
string
stringified table with instance fields
(see the luaserialization library)