GRAPHIC CLEAR statement

Purpose

Clear the entire selected graphic window, optionally using a specified color and fill style.

Syntax

GRAPHIC CLEAR [rgbColor& [, fillstyle&]]

Remarks

The graphic window must first be selected with GRAPHIC ATTACH.  The last point referenced (POS) is set to the upper left corner of the graphic window (0,0).

rgbColor&

Optional RGB value representing the fill color.  If rgbColor& is omitted (or -1), the graphic window is cleared to the default background color for the selected graphic window.

fillstyle&

Optional fill style (pattern) to be used.  If fillstyle& is omitted, the default fill style is solid (0).  If a hatch pattern is chosen (1 to 6), the foreground color is specified by the rgbColor&, while the background is specified by the default background color for the selected graphic window.  The optional fillstyle& may be:

0

Solid (default)

1

Horizontal Lines

2

Vertical Lines

3

Upward Diagonal Lines

4

Downward Diagonal Lines

5

Crossed Lines

6

Diagonal Crossed Lines

See also

Built-in RGB Color Equates, GRAPHIC ATTACH, GRAPHIC COLOR