
Chapter 21 Vision Control (Option)
21-35
VISSECT (Statement)
Function
Draws a sector on the screen.
Format
VISSECT <X coordinate>, <Y coordinate>, <Outer diameter>, <Inner
diameter>, <Start angle>, <End angle>
Explanation
<X coordinate > Designates the X coordinate of the sector to be drawn.
<Y coordinate > Designates the Y coordinate of the sector to be drawn.
<Outer diameter> Designates the outer diameter of the sector to be drawn.
<Inner diameter> Designates the inner diameter of the sector to be drawn.
<Start angle> Designates the start angle of the sector to be drawn.
<End angle> Designates the end angle of of the sector to be drawn.
Note (1): Designated values 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.
R1: Outer diameter
R2: Inner diameter
θ1: Start angle
θ2: End angle
X axis
axis
(X coordinate,
Y coordinate)
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.
VISSECT 255,255,100,50,100,260 'Draws a sector.
Komentarze do niniejszej Instrukcji