Python:Polygons
From Progzoo
A polygon is an angular shape such as a triangle or a hexagon.
We need to specify a whole list of points to draw or fill a
polygon.
In the PyX library we create a path and add points to it using path.moveto and path.lineto and path.closepath
The stroke method is used to draw the polygon.
test text