GrowFromPoint#

Qualified name: manim.animation.growing.GrowFromPoint

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

Bases: Transform

Introduce an Mobject by growing it from a point.

Parameters
  • mobject – The mobjects to be introduced.

  • point – The point from which the mobject grows.

  • point_color – Initial color of the mobject before growing to its full size. Leave empty to match mobject’s color.

Examples

Example: GrowFromPointExample

from manim import *

class GrowFromPointExample(Scene):
    def construct(self):
        dot = Dot(3 * UR, color=GREEN)
        squares = [Square() for _ in range(4)]
        VGroup(*squares).set_x(0).arrange(buff=1)
        self.add(dot)
        self.play(GrowFromPoint(squares[0], ORIGIN))
        self.play(GrowFromPoint(squares[1], [-2, 2, 0]))
        self.play(GrowFromPoint(squares[2], [3, -2, 0], RED))
        self.play(GrowFromPoint(squares[3], dot, dot.get_color()))

Methods

create_starting_mobject

create_target

Attributes

path_arc

path_func