RGB code for a CSS color value.
Platform Support
IE | Mozilla | Netscape | Opera | Safari | no | 1.0+ | 6.0+ | 9.0+ | 1.0+ |
---|
Constructors
Constructor | Action | IE | Mozilla | Netscape | Opera | Safari | ||
---|---|---|---|---|---|---|---|---|
RGBColor Constructor() : RGBColor
RGB code for a CSS color value.
|
Show Details | no | 1.0+ | 6.0+ | 9.0+ | 1.0+ | ||
RGBColor() : RGBColorRGB code for a CSS color value. Returns
|
Properties
Property | Action | IE | Mozilla | Netscape | Opera | Safari |
---|---|---|---|---|---|---|
blue
: CSSPrimitiveValue
Amount of blue in the color.
|
Show Details | no | 1.0+ | 6.0+ | 9.0+ | 1.0+ |
|
||||||
green
: CSSPrimitiveValue
Amount of green in the color.
|
Show Details | no | 1.0+ | 6.0+ | 9.0+ | 1.0+ |
|
||||||
red
: CSSPrimitiveValue
Amount of red in the color.
|
Show Details | no | 1.0+ | 6.0+ | 9.0+ | 1.0+ |
|
Availability
HTML DOM Level 2|W3C