def drawBezier(page, p1, p2, p3, p4, color=None, fill=None,<EOL>dashes=None, width=<NUM_LIT:1>, morph=None,<EOL>closePath=False, roundCap=False, overlay=True):
img = page.newShape()<EOL>Q = img.drawBezier(Point(p1), Point(p2), Point(p3), Point(p4))<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 general cubic Bezier curve from p1 to p4 using control points p2 and p3.