rgb PowerHome formula function
Description
Calculates the long value that represents the color specified by numeric values for the red, green, and blue components of the color.
Syntax
rgb ( red, green, blue )
Argument Description
red The integer value of the red component of the color
green The integer value of the green component of the color
blue The integer value of the blue component of the color
Return value
Long. Returns the long that represents the color created by combining the values specified in red, green, and blue. If an error occurs, RGB returns NULL.

Usage

The formula for combining the colors is:?

Red + (256 * Green) + (65536 * Blue)

The value of a component color is an integer between 0 and 255 that represents the amount of the component that is required to create the color you want. The lower the value, the darker the color; the higher the value, the lighter the color.