SETBG
Syntax SETBG number 
SETBG colorword 
SETBG [Red_value Green_value Blue_value] 
 
Explanation SETBG sets the background color of the Graphics window to the color specified by its input. The first 16 numbers are predefined as follows:
 
0 Black 8 Dark Grey
1 Blue 9 Light Blue
2 Green 10 Light Green
3 Cyan 11 Light Cyan
4 Red 12 Light Red
5 Violet 13 Magenta
6 Brown 14 Yellow
7 Light Grey 15 White

SETBG accepts color numbers from 0 through 255 and assigns colors compatible with the PC Logo environment.

You may also use one of the predfined color names or a list of three RGB values as input.

SETBG fills the drawing area from the outside of the Graphics window toward the center. Any drawings surrounded by a closed line, like circles, or rectangles, are not be filled when the background color is changed.

BACKGROUND reports the number of the current background color. The current background color displays in the current background pattern.

See also SETBGPATTERN and BGPATTERN.

Examples

SETBG YELLOW 
BG 
Result: [255 255 0] 
SETBG [255 0 255] 
BG 
Result: [255 0 255] 

TopIndex