GrowArrow¶
Qualified name: manim.animation.growing.GrowArrow
- class GrowArrow(mobject=None, *args, use_override=True, **kwargs)[source]¶
Bases:
GrowFromPointIntroduce an
Arrowby growing it from its start toward its tip.- Parameters:
arrow (Arrow) – The arrow to be introduced.
point_color (ParsableManimColor | None) – Initial color of the arrow before growing to its full size. Leave empty to match arrow’s color.
kwargs (Any)
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_mobjectAttributes
path_arcpath_funcrun_time- _original__init__(arrow, point_color=None, **kwargs)¶
Initialize self. See help(type(self)) for accurate signature.
- Parameters:
arrow (Arrow)
point_color (ParsableManimColor | None)
kwargs (Any)