Frame

ScreenRectangle

class manimlib.mobject.frame.ScreenRectangle(**kwargs)

和画面宽高比相同的矩形

  • 宽高比为 aspect_ratio ,默认为16/9

  • 高度为 height

FullScreenRectangle

class manimlib.mobject.frame.FullScreenRectangle(**kwargs)

全屏幕大小的矩形

FullScreenFadeRectangle

class manimlib.mobject.frame.FullScreenFadeRectangle(**kwargs)

全屏幕大小的矩形(默认无线条,填充黑色,不透明度0.7)

PictureInPictureFrame

class manimlib.mobject.frame.PictureInPictureFrame(**kwargs)

ScreenRectangle 类似