VISCIRCLE
(Statement)

Draw a circle on the screen.

VISCIRCLE <X coordinate>, <Y coordinate>, <radius> [, <mode>]

<X coordinate>
Specifies the X coordinate of the circle to be drawn.
<Y coordinate>
Specifies the Y coordinate of the circle to be drawn.
<radius>
Specifies the radius of the circle to be drawn.
<mode>
Specifies the mode of drawing.
0: Draws only an outline of a circle
1: Draws a whole filled circle.
If ignored, 0 will be the default setting.

-
The values of the X and Y coordinates and the radius are not checked. Even if they are out of the permissible drawing range, no error will result.
-
The object screen is the screen set with V ISSCREEN.
-
The brightness value for drawing is the same as the brightness designated with VISBRIGHT.
-
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
|
'Clear the screen
|
VISBRIGHT 255
|
'Set the brightness value for drawing
|
VISCIRCLE 255,255,100
|
'Draw a circle with a radius of 100
|
VISCIRCLE 200,200,50,1
|
'Draw a filled circle with a radius 50
|