ScreenRectangle¶
Qualified name: manim.mobject.frame.ScreenRectangle
- class ScreenRectangle(aspect_ratio=1.7777777777777777, height=4, **kwargs)[source]¶
Bases:
RectangleMethods
Attributes
alwaysCall a method on a mobject every frame.
animateUsed to animate the application of any method of
self.animation_overridesThe aspect ratio.
colordepthThe depth of the mobject.
fill_colorIf there are multiple colors (for gradient) this returns the first one
heightThe height of the mobject.
n_points_per_curvesheen_factorstroke_colorwidthThe width of the mobject.
- Parameters:
aspect_ratio (float)
height (float)
kwargs (Any)
- _original__init__(aspect_ratio=1.7777777777777777, height=4, **kwargs)¶
Initialize self. See help(type(self)) for accurate signature.
- Parameters:
aspect_ratio (float)
height (float)
kwargs (Any)
- Return type:
None
- property aspect_ratio: float¶
The aspect ratio.
When set, the width is stretched to accommodate the new aspect ratio.