SETBG

Syntax

SETBG number

(SETBG)

Explanation

SETBG sets the background color of the graphics screen the color specified by its input. The number is an index into the current palette. The first 16 numbers are predefined as follows: If SETBG is used without any inputs, a dialog box pops up, allowing you to pick a background color.

To output the number of the current background color, use BACKGROUND. The current background color displays in current background pattern. See also SETBGPATTERN and BGPATTERN.

Example

? SETBG 2 \

? BACKGROUND

Result: 2

?