VBScript RGB Function
Complete VBScript Reference Manual
The RGB function returns a number representing an RGB color value.
Syntax
RGB(red,green,blue)
| Parameters | 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 example above produces the following output:
255
Try it »
Example 2
The example above produces the following output:
1974015
Try it »
Complete VBScript Reference Manual