Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Fix Ellipse constructor: 'width' is not defined

jeanimal2d552e0aa487
diff --git a/manimlib/mobject/geometry.py b/manimlib/mobject/geometry.py
index 735cb4a06..14d672269 100644
--- a/manimlib/mobject/geometry.py
+++ b/manimlib/mobject/geometry.py
@@ -316,8 +316,8 @@ class Ellipse(Circle):
def __init__(self, **kwargs):
Circle.__init__(self, **kwargs)
- self.set_width(width, stretch=True)
- self.set_height(width, stretch=True)
+ self.set_width(self.width, stretch=True)
+ self.set_height(self.width, stretch=True)
class AnnularSector(Arc):