CyclicReplace¶
Qualified name: manim.animation.transform.CyclicReplace
- class CyclicReplace(mobject=None, *args, use_override=True, **kwargs)[source]¶
Bases:
TransformAn animation moving mobjects cyclically.
In particular, this means: the first mobject takes the place of the second mobject, the second one takes the place of the third mobject, and so on. The last mobject takes the place of the first one.
- Parameters:
Examples
Example: CyclicReplaceExample ¶
from manim import * class CyclicReplaceExample(Scene): def construct(self): group = VGroup(Square(), Circle(), Triangle(), Star()) group.arrange(RIGHT) self.add(group) for _ in range(4): self.play(CyclicReplace(*group))
class CyclicReplaceExample(Scene): def construct(self): group = VGroup(Square(), Circle(), Triangle(), Star()) group.arrange(RIGHT) self.add(group) for _ in range(4): self.play(CyclicReplace(*group))Methods
create_targetAttributes
path_arcpath_funcrun_time