VISLINE
(Statement)

Draw a line on the screen.

VISLINE <X coordinate>, <Y coordinate>, <length> [, <angle>]

<X coordinate >
Specifies the X coordinate in order to draw a line.
<Y coordinate >
Specifies the Y coordinate in order to draw a line.
<length>
Specifies the length of the line to be drawn.
<angle>
Specifies the angle of the line to be drawn. If ignored, 0 degrees will be the default setting.

-
The values of the X and Y coordinates, lengths, and angles 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 VISSCREEN.
-
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
|
FOR I1 = 0 TO 360 STEP 5
|
'
|
FOR VISLINE 256,256,100,I1
|
'Draw a line with a length of 100
|
NEXT I1
|
'
|