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


class BecomeScene(m.Scene):
    def construct(self):
        circ = m.Circle(fill_color=m.RED, fill_opacity=0.8)
        square = m.Square(fill_color=m.BLUE, fill_opacity=0.2)
        self.add(circ)
        self.wait(0.5)
        circ.become(square)
        self.wait(0.5)