ShrinkToCenter

Qualified name: manim.animation.transform.ShrinkToCenter

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

Bases: ScaleInPlace

Animation that makes a mobject shrink to center.

Examples

Example: ShrinkToCenterExample

from manim import *

class ShrinkToCenterExample(Scene):
    def construct(self):
        self.play(ShrinkToCenter(Text("Hello World!")))
class ShrinkToCenterExample(Scene):
    def construct(self):
        self.play(ShrinkToCenter(Text("Hello World!")))

Methods

Attributes

path_arc

path_func

run_time

Parameters:

mobject (Mobject)

_original__init__(mobject, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

Parameters:

mobject (Mobject)

Return type:

None