Description:
Convert the red, green, blue, and transparency values respectively to the corresponding color value.
Syntax:
rgb( redIntExp, greenIntExp, blueIntExp{, alphaIntExp} )
Note:
The value of redIntExp, greenIntExp, blueIntExp, alphaIntExp should be between 0-255.
Parameter:
|
redIntExp |
The integer expression indicating the red, whose value is between 0-255 |
|
greenIntExp |
The integer expression indicating the green, whose value is between 0-255. |
|
blueIntExp |
The integer expression indicating the blue, whose value is between 0-255 |
|
alphaIntExp |
The integer expression indicating the transparency, whose value is between 0-255; 0 represents total transparency and 255 indicates total opaqueness; the other values represent various levels of transparency respectively; default value is 255. |
Return value:
64-bit long integer
Example:
|
rgb(123,123,123) |
-8684677 |
|
rgb(123,123,123,123) |
2071690107 |
|
rgb(123,123,123,255) |
-8684677 |
|
rgb(123,123,123,0) |
8092539 |