GrowArrow

完整名称: manim.animation.growing.GrowArrow

class GrowArrow(mobject=None, *args, use_override=True, **kwargs)[source]

基类: GrowFromPoint

通过让 Arrow 从其起点向尖端生长来引入它。

参数:
  • arrow (Arrow) – 要引入的箭头。

  • point_color (str) – 箭头生长到完整大小之前的初始颜色。留空则与箭头的颜色匹配。

示例

示例: GrowArrowExample

from manim import *

class GrowArrowExample(Scene):
    def construct(self):
        arrows = [Arrow(2 * LEFT, 2 * RIGHT), Arrow(2 * DR, 2 * UL)]
        VGroup(*arrows).set_x(0).arrange(buff=2)
        self.play(GrowArrow(arrows[0]))
        self.play(GrowArrow(arrows[1], point_color=RED))
class GrowArrowExample(Scene):
    def construct(self):
        arrows = [Arrow(2 * LEFT, 2 * RIGHT), Arrow(2 * DR, 2 * UL)]
        VGroup(*arrows).set_x(0).arrange(buff=2)
        self.play(GrowArrow(arrows[0]))
        self.play(GrowArrow(arrows[1], point_color=RED))

方法

创建起始 Mobject 对象

属性

路径弧

路径函数

运行时间

_original__init__(arrow, point_color=None, **kwargs)

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

参数:
  • arrow (Arrow)

  • point_color (str)

返回类型: