mirror of
https://github.com/3b1b/manim.git
synced 2025-07-31 22:13:30 +08:00
Added FullScreenRect
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user