GrowArrow#

Qualified name: manim.animation.growing.GrowArrow

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

Bases: GrowFromPoint

Introduce an Arrow by growing it from its start toward its tip.

Parameters:
  • arrow (Arrow) – The arrow to be introduced.

  • point_color (str) – Initial color of the arrow before growing to its full size. Leave empty to match arrow’s color.

Examples

Example: 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))

Methods

create_starting_mobject

Attributes

path_arc

path_func