RGB Function

Syntax

Number RGB(Number redComponent, Number greenComponent, Number blueComponent)

Return Value

Number

a number that represents a color with the components you specify. Color values are in little-endian format. Use the ConvertColor function to change to big-endian format. Note: You can specify common color values with color constants, such as tsRed and tsWhite.

Parameters

redComponent as Number

The amount of red in the color. The range is from 0 (none) to 255 (maximum).

greenComponent as Number

The amount of green in the color. The range is from 0 (none) to 255 (maximum).

blueComponent as Number

The amount of blue in the color. The range is from 0 (none) to 255 (maximum).