POLYGON Mnemonic - Draw Polygon
Syntax
'POLYGON'(x1,y1,x2,y2{,x3,y3...})
'POLYGON'(number_of_pairs),numbers$
Description
The 'POLYGON' mnemonic draws a closed object bounded by lines between the specified coordinate points. The polygon is filled using the current brush settings. In the second form, numbers should have the appropriate number of coordinate pairs in it. All points must be integers (no floating point) in base 10, represented as groups of digits separated and terminated by non-digits.
The following examples produce identical results:
PRINT 'POLYGON'(3), "0 0 0 10 10 0 "
PRINT 'POLYGON'(3), "0,0 0,10 10a0 "