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
386 B
Raw Blame
# Source: manimgx API coverage (CE 0.21 `ZoomedScene.activate_zooming(animate=True)`)
import manimgx as m


class ZoomedSceneAnimatedExample(m.ZoomedScene):
    def construct(self):
        dot = m.Dot(color=m.YELLOW).shift(2 * m.UL)
        self.add(m.NumberPlane(), dot)
        self.zoomed_camera.frame.move_to(dot)
        self.activate_zooming(animate=True)
        self.wait(0.5)