The color object

The color object is returned from color type settings, and has the following attributes:

color.alpha

Returns the alpha component of the color, which is a decimal number between 0 and 1.

color.blue

Returns the blue component of the color, which is a number between 0 and 255.

color.green

Returns the green component of the color, which is a number between 0 and 255.

color.hue

Returns the hue component of the color, which is a number between 0 and 360.

color.lightness

Returns the lightness component of the color, which is a number between 0 and 100.

color.red

Returns the red component of the color, which is a number between 0 and 255.

color.saturation

Returns the saturation component of the color, which is a number between 0 and 100.