Script Function Reference

Function Reference >Script Function Reference >Table Formats>color

Color

The color format is used to represent color values with red green and blue components.
x.type = "color"
x.r -- the red value ranging from 0-255
x.g -- the green value ranging from 0-255
x.b -- the blue value ranging from 0-255
The RGB function can be used to generate a color.