POLYLINE

Draws an open regular polygon.
 
 POLYLINE radius [,total-chords [,draw chords]]
 
Usage:
POLYLINE 65,50,45
POLYLINE Radius,All_chords,All_chords*0.8
POLYLINE -Size,5
 
Example:           POLYLINE.BAS
 
Description:
POLYLINE differs from POLYGON in that it can draw open polygons or circles by specifying how many or the total chords to draw. The pen starts and ends a POLYLINE execution in the same position and after execution the pen is up.
 
The radius is the distance between the logical pen position and the polygon vertices where the first vertex is in the positive X-axis direction. A negative radius will rotate the POLYGON 180 degrees.
 
The total number of chords is rounded to an integer and must be in the range 3 to 32,767. If not specified, sixty chords are drawn.
 
The optional number of chords to draw is rounded to an integer and must be in the range of one to 32,767. If not specified all chords are drawn.
If the number of chords drawn are less than the specified total number of chords, the polygon is not closed. If the pen is up when the POLYLINE statement was executed, the first vertex is on the perimeter. If the pen is down when the POLYLINE statement was executed, the first point (logical pen position) is drawn to the first point on the perimeter.
 
POLYLINE is affected by PIVOT.
 
See Also: