RGBColor class

RGBColor class

The RGBColor interface is used to represent any RGB color value. This interface reflects the values in the underlying style property. Hence, modifications made to the CSSPrimitiveValue objects modify the style property.

Inheritance: RGBColorDOMObject

The RGBColor type exposes the following members:

Properties

PropertyDescription
redGets the red component value of this Color class.
greenGets the green component value of this Color class.
blueGets the blue component value of this Color class.
alphaGets the alpha component value of this Color class.

Methods

MethodDescription
get_platform_typeThis method is used to retrieve the ECMAScript object Type.
to_nativeConverts to the native color object.

See Also