mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Added FullScreenRect
This commit is contained in:
parent
9b8fdf3d3b
commit
d4dc52b22a
1 changed files with 12 additions and 9 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue