Programmatically generate SVG (vector) images, animations, and interactive Jupyter widgets

Add Ellipse element (#13)

kogswell 661e03d8 3fcc7d4b

Changed files
+9
drawSvg
+9
drawSvg/elements.py
···
def __init__(self, cx, cy, r, **kwargs):
super().__init__(cx=cx, cy=-cy, r=r, **kwargs)
+
class Ellipse(DrawingBasicElement):
+
''' An ellipse
+
+
Additional keyword arguments are output as additional properties to the
+
SVG node e.g. fill="red", stroke="#ff4477", stroke_width=2. '''
+
TAG_NAME = 'ellipse'
+
def __init__(self, cx, cy, rx, ry, **kwargs):
+
super().__init__(cx=cx, cy=-cy, rx=rx, ry=ry, **kwargs)
+
class ArcLine(Circle):
''' An arc