屏幕矩形

限定名称: manim.mobject.frame.ScreenRectangle

class ScreenRectangle(aspect_ratio=1.7777777777777777, height=4, **kwargs)[source]

基础类: Rectangle

方法

属性

animate

用于动画化self的任何方法的应用。

animation_overrides

aspect_ratio

宽高比。

color

depth

mobject的深度。

fill_color

如果有多种颜色(用于渐变),则返回第一个颜色

height

mobject的高度。

n_points_per_curve

sheen_factor

stroke_color

width

mobject的宽度。

_original__init__(aspect_ratio=1.7777777777777777, height=4, **kwargs)

初始化自身。有关准确的签名,请参阅 help(type(self))。

property aspect_ratio

宽高比。

设置后,宽度将拉伸以适应新的宽高比。