rgb()

Description:

Convert the red, green, blue, and transparency values to the corresponding color value.

Syntax:

rgb( redIntExp, greenIntExp, blueIntExp{, alphaIntExp} )

Note:

The value of redIntExp, greenIntExp, blueIntExp, alphaIntExp should be between 0-255.

Parameters:

redIntExp

The integer expression indicating the red, of which the value is between 0-255

greenIntExp

The integer expression indicating the green, of which the value is between 0-255

blueIntExp

The integer expression indicating the blue, of which the value is between 0-255

alphaIntExp

The integer expression indicating the transparency, of which the value is between 0-255. The 0 represents total transparency and the 255 indicates total opaqueness. The other values respectively represent various levels of transparency . The default value is 255.

Return value:

A 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