RGB()

Syntax

RGB(<nRed>, <nGreen>, <nBlue>)

Returns

<nIntegerRGBValue>

Description

Not actually a real function, this pseudo-function is defined in the PScript.ch header file as the following :

#translate RGB(<nRed>, <nGreen>, <nBlue>) => (<nRed> + (<nGreen> * 256) + (<nBlue> * 65536))

RGB accepts 3 arguments, defining the red, green and blue portion of the RGB color. 255 represents a pure color.

Pure red is obtained by using RGB(255, 0, 0)
Pure green is obtained by using RGB(0, 255, 0)
Pure blue is obtained by using RGB(0, 0, 255)
White is obtained by using RGB(255, 255, 255)
Black is obtained by using RGB(0, 0, 0)

Arguments

<nRed> The red portion of the color. 0 to 255.
<nGreen> The green portion of the color. 0 to 255.
<nBlue> The blue portion of the color. 0 to 255.