RGBColor

Availability

BlackBerry Device Software version 4.6 or later

The RGBColor object represents an RGB color value.

The RGBColor object contains three properties, each of which specifies the value for a different color channel for the overall color. Valid color channel values can be either a numerical value between 0 and 255, or a percentage between 0% and 100%, although values outside of those ranges are not clipped.

Properties

Property name

Type

Description

Status

Support level

Availability

blue

CSSPrimitiveValue

Returns the blue value of the RGB value.

read only

DOM 2 Style

4.6 or later

green

CSSPrimitiveValue

Returns the green value of the RGB value.

read only

DOM 2 Style

4.6 or later

red

CSSPrimitiveValue

Returns the red value of the RGB value.

read only

DOM 2 Style

4.6 or later

Last modified: 2014-03-10



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus