def drawCurve(page, p1, p2, p3, color=None, fill=None, dashes=None,<EOL>width=<NUM_LIT:1>, morph=None, closePath=False,<EOL>roundCap=False, overlay=True):
img = page.newShape()<EOL>Q = img.drawCurve(Point(p1), Point(p2), Point(p3))<EOL>img.finish(color=color, fill=fill, dashes=dashes, width=width,<EOL>roundCap=roundCap, morph=morph, closePath=closePath)<EOL>img.commit(overlay)<EOL>return Q<EOL>
Draw a special Bezier curve from p1 to p3, generating control points on lines p1 to p2 and p2 to p3.