RGB Function
Language Items List
Definition:
Returns a long integer that represents the RGB value of a color.
Syntax:
RGB (red, green, blue)
Syntax Description
red Integer ranging from 0 to 255, inclusive, that represents the intensity of the
color red.
green Integer ranging from 0 to 255, inclusive, that represents the intensity of the
color green.
blue Integer ranging from 0 to 255, inclusive, that represents the intensity of the
color blue.
Details:
Phoenix expects all color parameters to be specified as long integers, which
represent an RGB color value. An RGB color value specifies the intensity of red,
green, and blue, that when combined returns a number that represents the
specified mixture of colors.
If the value for any RGB argument is greater than 255, the value 255 is
assumed.
The following table lists some standard colors and their hexadecimal
representation, their corresponding RGB values, and their red, green, and blue intensity
value:
RGB Value Red Intensity Green Intensity Blue Intensity
Color (in Hex) Value Value Value
Black &H000000 0 0 0
Blue &HFF0000 0 0 255
Green &H00FF00 0 255 0
Cyan &HFFFF00 0 255 255
Red &H0000FF 255 0 0
Magenta &HFF00FF 255 0 255
Yellow &H00FFFF 255 255 0
White &HFFFFFF 255 255 255
See Also:
QBColor Function