Polygon

Polygon objects are created using the following functions. Polygons are drawn by specifying their corners using two parallel lists of x and y coordinates.

Function

Description

Polygon(xPoints, yPoints)

Creates a Polygon with corners specified by the xPoints and yPoints lists. The two lists are parallel, i.e., the first items correspond to the first polygon corner (x1, y1), the next items to the second corner (x2, y2), and so on.