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


class MoveToTargetExample(m.Scene):
    def construct(self):
        c = m.Circle()

        c.generate_target()
        assert c.target is not None
        c.target.set_fill(color=m.GREEN, opacity=0.5)
        c.target.shift(2 * m.RIGHT + m.UP).scale(0.5)

        self.add(c)
        self.play(m.MoveToTarget(c))