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
redThis attribute is used for the red value of the RGB color.
greenThis attribute is used for the green value of the RGB color.
blueThis attribute is used for the blue value of the RGB color.
alphaThis attribute is used for the alpha value of the RGB color.

Methods

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

See Also