RGB function

Purpose

Return an RGB color value for use with the Windows API palette and GDI functions.

Syntax

value& = RGB(red%, green%, blue%)

Remarks

red%, green% and blue% are values between 0 and 255, which represent the intensity of each color.  If a color value is negative, it is assumed to be zero.  If a color value is greater than 255 it is assumed to be 255.  value& is the combined colors as a Long-integer value.

See also

BGR