RGB
This command will return the final color value of a combination of red, green and blue intensities.
Return DWORD=RGB(Red Value,Green Value,Blue Value)
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.
The colour value of the colour created from the red, green and blue components.
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.
CLS RGB(0,128,0)
PRINT "A GREEN BACKDROP"
WAIT KEY
BASIC2D Commands Menu
Index