RGB()

Top  Previous  Next

RGB() - Calculate an RGB color value

Description

The RGB() function calculates an integer number representing an RGB color value.

RGB(red, green, blue)

Parameters
The red, green and blue parameters are numbers in the range 0-255 representing the color components for each color.

Example

White = RGB(255,255,255) 'returns 16777215

 

Green = RGB(0,255,0) 'returns 65280