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
322 B
Raw Blame
# Source: manim/mobject/mobject.py
import manimgx as m


class AnimateChainExample(m.Scene):
    def construct(self):
        s = m.Square()
        self.play(m.Create(s))
        self.play(
            s.animate.shift(m.RIGHT).scale(2),
            m.Rotate(s, angle=m.PI / 2),
        )
        self.play(m.Uncreate(s))