Easy Tutorial
❮ Func Formatnumber Func Second ❯

VBScript RGB Function


The RGB function returns a number representing an RGB color value.

Syntax

Parameter Description
red Required. A number between 0 and 255 (inclusive), representing the red component of the color.
green Required. A number between 0 and 255 (inclusive), representing the green component of the color.
blue Required. A number between 0 and 255 (inclusive), representing the blue component of the color.

Example

Example 1

The output of the above example:

Example 2

The output of the above example:


❮ Func Formatnumber Func Second ❯