Welcome to ManimLib2¶
ManimLib2 is inspired by ManimLib by Grant Sanderson of 3b1b. ManimLib2 facilitates the creation of mathematically preceise animations through an easy to use API.
For example, the following code draws a rectangle and spins it as it flies across the screen.
# Create an instance of the animation engine
m = Manim.iManim()
# Create an object to animate
rect = cmob.Rectangle([1,2])
rect.position = [-4,0]
# Issue instructions to the renderer
m.run(
i.AddMobject('rect', rect),
m.runParallel(
i.MoveTo('rect',[4,0],duration=1.0),
i.Rotate('rect', 2*np.pi,duration=1.0)
)
)
# Play the rendered animation
m.play_movie()
See the Quickstart for a quick introduction.
- Quickstart
- More Complex Animations
- API Reference
- iManim Object
- Mobject
- VMobject
- ImageMobject
- CompositeMobject
- Instruction
- SetAttribute Instruction
- AdjustAttribute Instruction
- manimlib2.Backend module
- manimlib2.BasicInstructions module
- manimlib2.Bezier module
- manimlib2.Camera module
- manimlib2.CommonMobs module
- manimlib2.Config module
- manimlib2.Coordinates module
- manimlib2.CoreInstructions module
- manimlib2.CustomMobs module
- manimlib2.Instruction module
- manimlib2.PlotMobject module
- manimlib2.PlotMobs module
- manimlib2.Render module
- manimlib2.Scene module
- manimlib2.TexMobject module
- manimlib2.testutils module