Help Center

Local Navigation

Object: RGBColor

Availability

BlackBerry® Device Software version 4.6 or later

Extends

Node

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.

RGBColor 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

Previous topic: Rect properties

Was this information helpful? Send us your comments.