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
306 B
Raw Blame
# Source: docs/source/tutorials/quickstart.rst
import manimgx as m


class TransformCycle(m.Scene):
    def construct(self):
        a = m.Circle()
        t1 = m.Square()
        t2 = m.Triangle()
        self.add(a)
        self.wait()
        for t in [t1, t2]:
            self.play(m.Transform(a, t))