SET THE COLOR OF THE SYSTEM OBJECT NUMBER N (RED,GREEN,BLUE)
ACTION
The command COLOR N,R,G,B set the color of the system object, designated by its number N. The color is the color resulting of the addition of the 3 specified primary components: red (R), green (G) and blue (B).
The intensity of each primary component can vary from 0 to 255. (0 = no color, 255 = full intensity).
Remark: when all the 3 primary components are 0, the result color is black (no color), when all the 3 primary components are 255, the result color is white (addition of the 3 primary colors at maximum intensity).
Recall:
- yellow color (red + green) when B = 0
- gray color when R=G=B
- violet color (red + blue) when G = 0
- black color when R=0, G=0, B=0
- white color when R=255, G=255, B=255
SYNTAX:
COLOR N,R,G,B
USE ERROR EXAMPLE
rem create a MEMO
memo 1
rem set its background in red color
color 1,255,0,0
COLOR
COLOR N,R,G,B
SEE ALSO
SCENE3D
EDIT
MEMO
COMBO
ALPHA
FORM
LIST
PICTURE
CHECK
OPTION
MOVIE
SPIN
GRID
CONTAINER
SCENE2D