Algosim documentation: DrawPolygon


Draws a polygon.



polygon(pm, L, c) returns pm with lines drawn between the points in L using colour c. Lines are drawn between L[1] and L[2], between L[2] and L[3], ..., between L[n − 1] and L[n], and between L[n] and back to L[1], where n = #L. They are drawn as solid single-pixel lines with no antialiasing.

See also