VISCLS
(Statement)

Fill (clear) a designated screen, set in a mode with a designated brightness.

VISCLS [<mode>[,<brightness value>]]

<mode>
(0~3) If ignored, 2 is set.
0: Fills the screen set with VISSCREEN instruction with a designated brightness.
1: Fills the entire processing screen with a designated brightness.
2: Fills the entire screen with a designated brightness.
3: Fills all screens with a designated brightness.
<brightness value>
Specifies the brightness value for coating (clearing).
(0 to 255). If ignored, 0 will be the default setting.

-
If a drawing object is in the storage memory (Processing screen), it is cleared with a designated brightness. If it is in the overlay memory (draw only memory), the following brightness will be used.Brightness value 128 to 255: 255 (White)Brightness value 1 to 127: 0 (Black)Brightness value 0: Through (Transparent)
-
For this instruction, a µVision board (option) is required.

VISSCREEN 1,0,1
|
'
|
VISCLS 0
|
'
|
VISSCREEN 1,1,1
|
'
|
VISCLS 0
|
'
|
VISPLNOUT 0
|
'Display storage memory 0 (processing screen)
|
VISSCREEN 0,0,1
|
'Instantaneously draw on processing screen 0
|
FOR I1 = 10 TO 200 STEP 5
|
'
|
FOR VISCLS 0,I1
|
'Fill the screen with the designated brightness of I1
|
NEXT I1
|
'
|
DELAY 500
|
'Stop for 0.5 seconds
|
VISCLS 0
|
'Fill the screen with brightness 0
|
VISRECT 200,200,200,200
|
'Draw a rectangle with a width of 200 and a height of 200
|
DELAY 500
|
'Stop for 0.5 seconds
|
VISCLS 0
|
'Fill a rectangle on the drawing screen
|
VISCAMOUT 1
|
'
|
VISSCREEN 1,0,1
|
'Instantaneously draw on draw only screen 0
|
VISRECT 100,100,200,200
|
'Draw a rectangle with a width of 200 and a height of 200
|
DELAY 500
|
'Stop for 0.5 seconds
|
VISCLS 0
|
'Fill a rectangle on the draw screen
|
VISCLS 0,127
|
'Fill the drawing screen black
|
DELAY 500
|
'Stop for 0.5 seconds
|
VISCLS 0,255
|
'Fill the draw screen white
|
DELAY 500
|
'Stop for 0.5 seconds
|
VISCLS 0
|
'Set the drawing screen to transparent
|