Skip to content

The animation engine for agents: blazingly fast math and 3D videos with Manim's Python API, on a Rust GPU core.

Python
326 B
Raw Blame
# Source: manim/animation/transform.py
import manimgx as m


class CyclicReplaceExample(m.Scene):
    def construct(self):
        group = m.VGroup(m.Square(), m.Circle(), m.Triangle(), m.Star())
        group.arrange(m.RIGHT)
        self.add(group)

        for _ in range(4):
            self.play(m.CyclicReplace(*group))