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


class FlipExample(m.Scene):
    def construct(self):
        s = m.Line(m.LEFT, m.RIGHT + m.UP).shift(4 * m.LEFT)
        self.add(s)
        s2 = s.copy().flip()
        self.add(s2)
        self.wait()