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


class AlwaysExample(m.Scene):
    def construct(self):
        sq = m.Square().to_edge(m.LEFT)
        t = m.Text("Hello World!")
        t.always.next_to(sq, m.UP)
        self.add(sq, t)
        self.play(sq.animate.to_edge(m.RIGHT))