DrawPolygon
Draws a polygon.
Syntax
-
DrawPolygon(pm, L, c)
-
pm
is a pixmap -
L
is a list of points -
c
is a colour
-
Description
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.