Documentation

Python scene-writing docs for Manim Web

Learn the authoring model, copy known-good patterns, and use the generated API reference when you need exact signatures and parameters.

Build-generated referenceGuides for scene authors
GuideGuides4 sections

Core Scene Model

This is the mental model behind almost every script: create objects, place them, animate them on the scene timeline, and group related elements so they behave as one composition.

Scene Skeleton

The most standard authoring shape is a scene class with a construct() method. The method builds the scene state and timeline in order.

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))        self.wait(0.5) scene = HelloScene()scene.construct() 

Timeline Primitives

  • self.add(...) places objects immediately without animation.
  • self.remove(...) removes objects immediately.
  • self.play(...) runs animations on the timeline.
  • self.wait(...) holds the current state for more time.

Coordinates And Layering

Most scripts start with the directional constants UP, DOWN, LEFT, andRIGHT. Add order affects stacking, so the order of add() calls is a practical z-order tool.

Groups

Use Group or VGroup when several objects should move and lay out together. Groups keep your scripts easier to read and let you animate a composed chunk instead of many loose pieces.