2D_CLEAR

2D_CLEAR

CLEARS THE BACKGROUND OF THE "2D TARGET" SYSTEM OBJECT

  • Type: Command
  • Parameter: 0
  • Group: Drawing

ACTION

The command 2D_CLEAR clears the background of the "2D target" system object (set by 2D_TARGET_IS).

The next print will occurs at the origin (0,0) of the "2D target" system object, that is its upper left corner.

Remark : the "2D target" system object must be a PICTURE.

SYNTAX: 2D_CLEAR

USE

  • The command 2D_CLEAR is used to clear the background of the "2D target" system object to draw or to print on a clear surface.
  • The command 2D_CLEAR is used to clear the background after drawing or before drawing new things.

ERROR

  • None.

EXAMPLE

rem draw a circle: center (100,100), radius = 50 pixels

2d_circle 100,100,50

rem wait 1 second

wait 1000

rem clear all

2d_clear

SEE ALSO

CLS