Color

The Color class is used in the user interface and in the main game world of Armada. Colors are RGB values - each component of the color is a floating point number between 0 and 1, where 0 is no intensity and 1 is full. There is no support for alpha values in the Color class.

Properties

Name Type Access Description
r Number RW Floating point red component of the color in range 0 to 1.
g Number RW Floating point green component of the color in range 0 to 1.
b Number RW Floating point blue component of the color in range 0 to 1.

Functions and Enumerations