From d4dc52b22a565821e9aa1c698dccf95c77126ca0 Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Sun, 11 Mar 2018 17:11:55 -0700 Subject: [PATCH] Added FullScreenRect --- topics/geometry.py | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/topics/geometry.py b/topics/geometry.py index d2e9363f..5e2fe5a1 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.height Rectangle.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,