Getting StartedGetting Started4 sections
Write Your First Scene
This is the shortest path from a blank script to a successful preview. It focuses on the Python scene shape, not on repository setup or deployment.
Minimal Scene
from manim import * class HelloScene(Scene): def construct(self): title = Text("Hello, Manim Web") circle = Circle().shift(LEFT * 2) square = Square().shift(RIGHT * 2) self.play(FadeIn(title)) self.play(Create(circle), Create(square)) scene = HelloScene()scene.construct() Script Shape
The key pieces are a scene class, a construct() method, one or more mobjects, and a sequence of timeline actions. You usually create objects first, then add or animate them.
Preview Loop
The healthiest authoring loop is simple:
- Write a small scene.
- Preview it.
- Fix diagnostics or layout problems.
- Only add complexity once the current step is readable and stable.
Best practice
Start with very small scenes. A short scene with three clear objects teaches more than a complicated one that mixes layout, animation, and 3D all at once.
Where To Go Next
- Learn the authoring mental model in
Core Scene Model. - Use
Objects and Layoutwhen scenes start feeling visually unbalanced. - Use
Examples and Patternswhen you want known-good script structures. - Use
Python API Referencewhen you know what concept you need and want exact details.