RGB This command will return the final color value of a combination of red, green and blue intensities.
Syntax
    Return DWORD=RGB(Red Value,Green Value,Blue Value)
Parameters
    Red Value
Integer This value specifies the red component of the final colour value to be created.
    Green Value
Integer This value specifies the green component of the final colour value to be created.
    Blue Value
Integer This value specifies the blue component of the final colour value to be created.
Returns
The colour value of the colour created from the red, green and blue components.
Description
For each of the Red, Green and Blue components you must enter a value between 0 and 255. All zero will return a color value that represents black. All 255 will return a color value that represents white. By setting the Red component to 255 and the rest to zero, the command will return a color value that represents red.
Example Code
    CLS RGB(0,128,0)

    PRINT "A GREEN BACKDROP"

    WAIT KEY
See also
BASIC2D Commands Menu Index