Added FullScreenRect

This commit is contained in:
Grant Sanderson
2018-03-11 17:11:55 -07:00
parent 9b8fdf3d3b
commit d4dc52b22a

View File

@ -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,