GRAPHIC COLOR statement

Purpose

Set the foreground color and optionally the background color for various graphic statements.

Syntax

GRAPHIC COLOR foreground& [, background&]

Remarks

The graphic target must first be selected with GRAPHIC ATTACH.  If either parameter is -1, the default foreground/background color is used.  If the background parameter is -2, the background is not painted, allowing the content behind to become visible.  Otherwise, the specified RGB color is used.

See also

GRAPHIC ATTACH, GRAPHIC PRINT

Example

' Set red foreground and blue background color.

GRAPHIC COLOR %RED, RGB(0,0,191)