A community-maintained Python framework for creating mathematical animations.
Fixed error with how ScreenRectangle inherited from Rectangle
Grant Sanderson05bd710ebbec
diff --git a/manimlib/mobject/frame.py b/manimlib/mobject/frame.pyindex 6d354edb8..5b51fce37 100644--- a/manimlib/mobject/frame.py+++ b/manimlib/mobject/frame.py@@ -6,12 +6,15 @@ from manimlib.utils.config_ops import digest_configclass ScreenRectangle(Rectangle):CONFIG = {"width_to_height_ratio": 16.0 / 9.0,- "height": 4,+ "height": 4}- def generate_points(self):+ def __init__(self, **kwargs):+ digest_config(self, kwargs)self.width = self.width_to_height_ratio * self.height- Rectangle.generate_points(self)+ Rectangle.__init__(+ self, height=self.height, width=self.width, **kwargs+ )class FullScreenRectangle(ScreenRectangle):