Skip to contents

Plays multiple animations simultaneously (in parallel).

Super class

manimR::Animation -> AnimationGroup

Public fields

animations

List of child animations

group

The VGroup of all animated mobjects

lag_ratio

Stagger ratio (0 = all together, 1 = sequential)

Methods

Inherited methods


Method new()

Create an AnimationGroup

Usage

AnimationGroup$new(..., run_time = NULL, rate_func = "linear", lag_ratio = 0)

Arguments

...

Animation objects to play together

run_time

Override total run time (NULL = max of children)

rate_func

Rate function applied to the group

lag_ratio

Stagger ratio between animations (0-1)


Method begin()

Begin all child animations

Usage

AnimationGroup$begin()


Method finish()

Finish all child animations

Usage

AnimationGroup$finish()


Method interpolate_mobject()

Interpolate all child animations with lag

Usage

AnimationGroup$interpolate_mobject(alpha)

Arguments

alpha

Overall progress in 0,1


Method get_all_mobjects()

Get all mobjects from child animations

Usage

AnimationGroup$get_all_mobjects()


Method clone()

The objects of this class are cloneable with this method.

Usage

AnimationGroup$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.