Path
newpath()
start a new path.
moveto(x, y)
move the current point to (x, y). Use newpath() before calling moveto(). Within a path you can call newpath() to start a new subpath (for instance for shape / counter shape compounds)
lineto(x, y)
draw a straight line from the current point to (x, y).
curveto(x1, y1, x2, y2, x3, y3)
draw a bezier curve from the current point, via bezier control points (x1, y1), (x2, y2) to the end point at (x3, y3).
arcto(self, x1, y1, x2, y2, radius)
draw an arc. See example.
closepath()
close the current path. If the current point is not exactly on top of the starting point of the path this will draw a straight line to close the path.
drawpath(path=None)
draw the current path with the previously set fill and stroke colors.