How to use manim - 1 common examples

To help you get started, we’ve selected a few manim examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github 3b1b / manim / test1.py View on Github external
from big_ol_pile_of_manim_imports import *
from manim import Manim


manim = Manim()

circle = Circle()
square = Square()
line = Line(np.array([3,0,0]),np.array([5,0,0]))
triangle = Polygon(np.array([0,0,0]),np.array([1,1,0]),np.array([1,-1,0]))

manim.add(line)
manim.play(ShowCreation(circle))
manim.play(FadeOut(circle))
manim.play(GrowFromCenter(square))
manim.play(Transform(square,triangle))

manim.close_movie_pipe()

manim

Animation engine for explanatory math videos.

MIT
Latest version published 7 months ago

Package Health Score

83 / 100
Full package analysis

Popular manim functions