Animate mobjects.
Classes
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
anim (Union[Animation, mobject._AnimationBuilder]) –