The animation engine for agents: blazingly fast math and 3D videos with Manim's Python API, on a Rust GPU core.
Python
# Source: manim/animation/transform.py
import numpy as np
import manimgx as m
class TransformPathArcAxisExample(m.Scene):
def construct(self):
source = m.Square(color=m.BLUE, fill_opacity=1.0).shift(2 * m.LEFT)
target = m.Circle(color=m.RED, fill_opacity=1.0).shift(2 * m.RIGHT)
self.add(source)
self.play(
m.Transform(
source,
target,
path_arc=m.PI,
path_arc_axis=np.array([1.0, 0.0, 0.0]),
)
)