Class: RGBColor

RGBColor

RGBColor
Stores an RGB color with red, green, blue, and alpha values.
All values are in the range [0.0 to 255.0]. Invalid numeric values are
converted to numbers within this range.


new RGBColor(red, green, blue, alpha)

Parameters:
Name Type Description
red number

The red value, in the range [0.0 to 255.0].

green number

The green value, in the range [0.0 to 255.0].

blue number

The blue value, in the range [0.0 to 255.0].

alpha number

The alpha (transparency) value, in the range [0.0 to 255.0].
The default, 255.0, means that the color is fully opaque.

Source:
Returns:

A new RGBColor object.