The animation engine for agents: blazingly fast math and 3D videos with Manim's Python API, on a Rust GPU core.
Python
title: "Rendering" description: "Make the video: the command line, the configuration a scene is made with, and rendering from Python."
Rendering
import manimgx as m
class RenderingHero(m.Scene):
def construct(self) -> None:
commands = m.Code(
code_string="manimgx render scene.py\nmanimgx preview scene.py\nmanimgx inspect scene.py\nmanimgx present scene.py",
language="bash",
background="window",
).scale(1.2)
self.play(m.FadeIn(commands))
self.wait()
The manimgx command makes the video of a scene, an MP4 file, next to the scene's file.
It also plays the scene in a window while you edit it, checks it for problems a viewer would
see, draws a still, and presents it as slides. The configuration sets the video's size, frame
rate and background. From Python, a scene renders into a film, which a program can keep,
play in a window, or write.
manimgx render,preview,inspectandpresent, and their options.
The video's size and frame rate, its background, and the frame's size in units.
Render a scene from a program: its film, its frames, its sound and its captions.