def oval(pen, x, y, w, h):
    radius_w = w / 2.0
    radius_h = h / 2.0
    bcp_w = BEZIER_ARC_CIRCLE * radius_w
    bcp_h = BEZIER_ARC_CIRCLE * radius_h
    x += radius_w
    y += radius_h
    pen.moveTo((x, y+radius_h))
    pen.curveTo((x+bcp_w, y+radius_h), (x+radius_w, y+bcp_h), (x+radius_w, y) )
    pen.curveTo((x+radius_w, y-bcp_h), (x+bcp_w, y-radius_h), (x, y-radius_h) )
    pen.curveTo((x-bcp_w, y-radius_h), (x-radius_w, y-bcp_h), (x-radius_w, y) )
    pen.curveTo((x-radius_w, y+bcp_h), (x-bcp_w, y+radius_h), (x, y+radius_h) )
    pen.closePath()
Draw an oval with a pen object.
dataset/ETHPy150Open gferreira/hTools2/Lib/hTools2/modules/primitives.py/oval