Wait#
Qualified name: manim.animation.animation.Wait
- class Wait(mobject=None, *args, use_override=True, **kwargs)[source]#
Bases:
Animation
A “no operation” animation.
- Parameters
run_time – The amount of time that should pass.
stop_condition – A function without positional arguments that evaluates to a boolean. The function is evaluated after every new frame has been rendered. Playing the animation stops after the return value is truthy, or after the specified
run_time
has passed.frozen_frame – Controls whether or not the wait animation is static, i.e., corresponds to a frozen frame. If
False
is passed, the render loop still progresses through the animation as usual and (among other things) continues to call updater functions. IfNone
(the default value), theScene.play()
call tries to determine whether the Wait call can be static or not itself viaScene.should_mobjects_update()
.kwargs – Keyword arguments to be passed to the parent class,
Animation
.
Methods
Begin the animation.
Clean up the
Scene
after finishing the animation.Finish the animation.
Set the animation progress.
Updates things like starting_mobject, and (for Transforms) target_mobject.
- begin()[source]#
Begin the animation.
This method is called right as an animation is being played. As much initialization as possible, especially any mobject copying, should live in this method.
- Return type
None
- clean_up_from_scene(scene)[source]#
Clean up the
Scene
after finishing the animation.This includes to
remove()
the Animation’sMobject
if the animation is a remover.- Parameters
scene (Scene) – The scene the animation should be cleaned up from.
- Return type
None
- finish()[source]#
Finish the animation.
This method gets called when the animation is over.
- Return type
None