manim.animation.animation.Animation

class Animation(mobject, lag_ratio=0.0, run_time=1.0, rate_func=<function smooth>, name=None, remover=False, suspend_mobject_updating=True, **kwargs)[source]

Bases: object

Methods

begin

clean_up_from_scene

copy

create_starting_mobject

finish

get_all_families_zipped

get_all_mobjects

Ordering must match the ordering of arguments to interpolate_submobject

get_all_mobjects_to_update

get_rate_func

get_run_time

get_sub_alpha

interpolate

interpolate_mobject

interpolate_submobject

is_remover

set_name

set_rate_func

set_run_time

update

This method shouldn’t exist, but it’s here to keep many old scenes from breaking

update_mobjects

Updates things like starting_mobject, and (for Transforms) target_mobject.

Parameters
  • mobject (Optional[manim.mobject.mobject.Mobject]) –

  • lag_ratio (float) –

  • run_time (float) –

  • rate_func (Callable[[float], float]) –

  • name (str) –

  • remover (bool) –

  • suspend_mobject_updating (bool) –

Return type

None

get_all_mobjects()[source]

Ordering must match the ordering of arguments to interpolate_submobject

Return type

Tuple[manim.mobject.mobject.Mobject, manim.mobject.mobject.Mobject]

update(alpha)[source]

This method shouldn’t exist, but it’s here to keep many old scenes from breaking

Parameters

alpha (float) –

Return type

None

update_mobjects(dt)[source]

Updates things like starting_mobject, and (for Transforms) target_mobject. Note, since typically (always?) self.mobject will have its updating suspended during the animation, this will do nothing to self.mobject.

Parameters

dt (float) –

Return type

None