FUNCTION:  RGB( )

Implemented in version 2.0
 
RGB(red, green, blue)
 
The RGB function returns an integer that defines an RGB color value.
 
RGB is an old television term. It refers to the primary colors that are used in color television (red, green, and blue). These three colors are blended together inside a television tube to create the colors displayed on the screen. The same concept is applied to computer monitors.
 
There are three mandatory arguments.
 
The red mandatory agrument defines the red component of the color and must be an integer number ranging from 0 to 255.
 
The green mandatory agrument defines the green component of the color and must be an integer number ranging from 0 to 255.
 
The blue mandatory agrument defines the blue component of the color and must be an integer number ranging from 0 to 255.
 
If the integer argument exceeds 255, it will be treated as 255. Note, that there are 256*256*256 = 16,777,215 different color permutations.
 
Code:
<%; = RGB(0, 0, 0) %>
<%; = RGB(94, 71, 177) %>
<%; = RGB(255, 255, 255) %>

 
Output:
0
11618142
16777215


Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information