从中心生长¶
限定名称: manim.animation.growing.GrowFromCenter
- class GrowFromCenter(mobject=None, *args, use_override=True, **kwargs)[来源]¶
-
通过从其中心生长来介绍一个
Mobject。- Parameters:
mobject (Mobject) – 要引入的mobjects。
point_color (str) – 物体在增长到其完整大小之前的初始颜色。留空以匹配物体的颜色。
示例
示例:GrowFromCenterExample ¶
from manim import * class GrowFromCenterExample(Scene): def construct(self): squares = [Square() for _ in range(2)] VGroup(*squares).set_x(0).arrange(buff=2) self.play(GrowFromCenter(squares[0])) self.play(GrowFromCenter(squares[1], point_color=RED))
class GrowFromCenterExample(Scene): def construct(self): squares = [Square() for _ in range(2)] VGroup(*squares).set_x(0).arrange(buff=2) self.play(GrowFromCenter(squares[0])) self.play(GrowFromCenter(squares[1], point_color=RED))方法
属性
path_arcpath_func