VISBRIGHT
(Statement)

Specify a drawing brightness value.

VISBRIGHT <brightness value>

<brightness value> Specifies a drawing brightness value (0 to 255).

-
If a drawing object is in the storage memory (Processing screen), it is drawn 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)
-
When you turn ON the power, VISBRIGHT 255 is set as the default setting.
-
For this instruction, a µVision board (option) is required.


VISPLNOUT 0
|
'Display storage memory 0 (processing screen)
|
VISSCREEN 0,0,1
|
'Instantaneously draw on processing screen 0
|
VISCLS 0
|
'
|
FOR I1 = 10 TO 200 STEP 5
|
'
|
FOR VISBRIGHT I1
|
'
|
FOR VISRECT 100+I1,100,200,200
|
'Draw a rectangle with a width of 200 and
'a height of 200
|
NEXT I1
|
'
|
DELAY 500
|
'Stop for 0.5 seconds
|
VISCLS 0
|
'Clear the screen
|
VISSCREEN 1,0,1
|
'Instantaneously draw on draw only screen 0
|
FOR I1 = 10 TO 200 STEP 5
|
'
|
FOR VISBRIGHT I1
|
'
|
FOR VISRECT 100+I1,100,200,200
|
'Draw a rectangle with a width of 200 and
'a height of 200
|
NEXT I1
|
'
|