Class Methods

These static methods do not require a Color object instance. When you invoke the method, it is prefixed with the Color classname and the '.' character.
Color.fromHSBA( h, s, b)

Creates a Color object based on the values for the HSB color model where:

Color.fromHSBA( h, s, b, a)

Creates a Color object based on the values for the HSB color model where:

Color.fromRGBA( r, g, b )

Creates an opaque sRGB Color object based on the specified values where:

Alpha defaults to 1.0. The color used depends on the best match from the colors available for the output device.

fromRGBA( r, g, b a) 

Creates an sRGB Color object based on the specified values where:

The color used depends on the best match from the colors available for the output device.

Example:
Color.fromRGBA(0.5,0.5,0.5,0.5)