
21-30
VISLINE (Statement)
Function
Draws a line on the screen.
Format
VISLINE<X coordinate >, <Y coordinate >, <Length> [, <Angle>]
Explanation
<X coordinate > Designates the X coordinate in order to draw a line.
<Y coordinate > Designates the Y coordinate in order to draw a line.
<Length> Designates the length of the line to be drawn.
<Angle> Designates the angle of the line to be drawn. If ignored, 0 degrees
will be the default setting.
Note (1): 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.
Note (2): The object screen is the screen set with VISSCREEN.
Note (3): The brightness value for drawing is the same as the
brightness designated with VISBRIGHT.
Note (4): For this instruction, a µ
µµ
µVision board (option) is required.
X axis
axis
(X coordinate, Y coordinate)
Length
Angle
(0, 0)
Related Terms
VISSCREEN, VISBRIGHT
Example
VISPLNOUT 0 'Displays storage memory 0 (processing screen).
VISSCREEN 0,0,1 'Instantaneously draws on processing screen 0.
VISCLS 0 'Clears the screen.
VISBRIGHT 255 'Sets the brightness value for drawing.
FORI1=0TO360STEP 5 '
FOR VISLINE 256,256,100,I1 'Draws a line with a length of 100.
NEXT I1 '
Komentarze do niniejszej Instrukcji