def get_bezier_ellipse(x, y, xradius, yradius, kappa=0.5522848):
    """Get a set of 12 bezier control points necessary to form an
    ellipse."""

    xs, ys = x - xradius, y - yradius
    ox, oy = xradius * kappa, yradius * kappa
    xe, ye = x + xradius, y + yradius

    pts = [(xs, y),
           (xs, y - oy), (x - ox, ys), (x, ys),
           (x + ox, ys), (xe, y - oy), (xe, y),
           (xe, y + oy), (x + ox, ye), (x, ye),
           (x - ox, ye), (xs, y + oy), (xs, y)]
    return pts
def get_bezier_ellipse ( x , y , xradius , yradius , kappa = 0.5522848 ) : xs , ys = x - xradius , y - yradius ox , oy = xradius * kappa , yradius * kappa xe , ye = x + xradius , y + yradius pts = [ ( xs , y ) , ( xs , y - oy ) , ( x - ox , ys ) , ( x , ys ) , ( x + ox , ys ) , ( xe , y - oy ) , ( xe , y ) , ( xe , y + oy ) , ( x + ox , ye ) , ( x , ye ) , ( x - ox , ye ) , ( xs , y + oy ) , ( xs , y ) ] return pts
Get a set of 12 bezier control points necessary to form an
    ellipse.