A community-maintained Python framework for creating mathematical animations.
Added FullScreenRect
Grant Sandersond4dc52b22a56
diff --git a/topics/geometry.py b/topics/geometry.pyindex d2e9363f6..5e2fe5a18 100644--- a/topics/geometry.py+++ b/topics/geometry.py@@ -707,15 +707,6 @@ class BackgroundRectangle(SurroundingRectangle):def get_fill_color(self):return Color(self.color)-class FullScreenFadeRectangle(Rectangle):- CONFIG = {- "height" : 2*SPACE_HEIGHT,- "width" : 2*SPACE_WIDTH,- "stroke_width" : 0,- "fill_color" : BLACK,- "fill_opacity" : 0.7,- }-class ScreenRectangle(Rectangle):CONFIG = {"width_to_height_ratio" : 16.0/9.0,@@ -725,6 +716,18 @@ class ScreenRectangle(Rectangle):self.width = self.width_to_height_ratio * self.heightRectangle.generate_points(self)+class FullScreenRectangle(ScreenRectangle):+ CONFIG = {+ "height" : 2*SPACE_HEIGHT,+ }++class FullScreenFadeRectangle(FullScreenRectangle):+ CONFIG = {+ "stroke_width" : 0,+ "fill_color" : BLACK,+ "fill_opacity" : 0.7,+ }+class PictureInPictureFrame(Rectangle):CONFIG = {"height" : 3,