manim.animation.animation

Animate mobjects.

Classes

Animation

Wait

Functions

prepare_animation(anim)[source]

Returns either an unchanged animation, or the animation built from a passed animation factory.

Examples

>>> from manim import Square, FadeIn
>>> s = Square()
>>> prepare_animation(FadeIn(s))
FadeIn(Square)
>>> prepare_animation(s.animate.scale(2).rotate(42))
_MethodAnimation(Square)
>>> prepare_animation(42)
Traceback (most recent call last):
...
TypeError: Object 42 cannot be converted to an animation
Parameters

anim (Union[Animation, _AnimationBuilder]) –

Return type

manim.animation.animation.Animation