from manim import *

class HelloWorld(Scene):
    def construct(self):
        # Create shapes with colors
        circle = Circle(color=BLUE)
        square = Square(color=RED).shift(RIGHT * 2)
        triangle = Triangle(color=GREEN).shift(LEFT * 2)

        # Add text
        title = Text("ManimOnline", color=WHITE).shift(UP * 2)

        self.play(Create(circle), FadeIn(title), FadeIn(triangle))
        self.play(Transform(circle, square))
        self.wait(1)
Manim Sample gallery ↗ Video series ↗

Save to HashBin

Account settings

Fork me on GitHub