CLS

This command will clear the screen using the specified color value.

  Syntax
CLS Color Value
  Parameters
Color Value
Integer
This value specifies the colour value to clear the screen with, normally generated from the RGB command.

  Returns

This command does not return a value.

  Description

Color values range from 0 to over 16 million, that represent every combination of red, green and blue to make up the final Color. You can use the RGB command to make the generation of the color value.

  Example Code
CLS RGB(0,255,0)
PRINT "BRIGHT GREEN SCREEN"
WAIT KEY
  See also

BASIC2D Commands Menu
Index