VBScript RGB Function

The RGB function returns a number that represents an RGB color value."

Examples

Example 1

<%

response.write(rgb(255,0,0))

%>

The output of the code above will be:

255

Example 2

<%

response.write(rgb(255,30,30))

%>

The output of the code above will be:

1974015

❮ Complete VBScript Reference