VISPTP
(Statement)

Draw a line connecting two points on the screen.

VISPTP <start point X coordinate>, <start point Y coordinate>, <end point X coordinate>, <end point Y coordinate>

<start point X coordinate >
Specifies the start point of the X coordinate of the line to be drawn.
<start point Y coordinate >
Specifies the start point of the Y coordinate of the line to be drawn.
<end point X coordinate >
Specifies the end point of the X coordinate of the line to be drawn.
<end point Y coordinate >
Specifies the end point of the Y coordinate of the line to be drawn.

-
The values of the X and Y coordinates 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 = 200 TO 300
|
'
|
FOR VISPTP 100,100,200,I1
|
'Draw a line connecting two points
|
NEXT I1
|
'
|