Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

fixed tiny config error for Square

Grant Sanderson9d94337d9909
diff --git a/topics/geometry.py b/topics/geometry.py
index 6f0202fbc..d45b2691e 100644
--- a/topics/geometry.py
+++ b/topics/geometry.py
@@ -258,16 +258,15 @@ class Square(Rectangle):
"side_length" : 2.0,
}
def __init__(self, **kwargs):
- side_length = kwargs.pop("side_length")
+ digest_config(self, kwargs)
Rectangle.__init__(
self,
- height = side_length,
- width = side_length,
+ height = self.side_length,
+ width = self.side_length,
**kwargs
)
-
class FilledRectangle(Mobject1D):
CONFIG = {
"color" : GREY,