Manim is an animation engine for explanatory math videos. It's used to create precise animations programmatically.
Manim runs on python 3.7. You can install the python requirements with
python3 -m pip install -r requirements.txt
. System requirements are
cairo, latex,
ffmpeg, and sox.
git clone https://github.com/mdbernard/manim.git
cd manim
python3 setup.py install
python3 -m manim example_scenes.py SquareToCircle -pl
Try running the following:
python3 -m manim example_scenes.py SquareToCircle -pl
The -p is for previewing, meaning the the video file will automatically open when it is done rendering. Use -l for a faster rendering at a lower quality. Use -s to skip to the end and just show the final frame. Use -n (number) to skip ahead to the n'th animation of a scene. Use -f to show the file in finder (for osx)
Set MEDIA_DIR environment variable to determine where image and animation files will be written.
Look through the old_projects folder to see the code for previous 3b1b videos. Note, however, that developments are often made to the library without considering backwards compatibility on those old_projects. To run them with a guarantee that they will work, you will have to go back to the commit which complete that project.
While developing a scene, the -sp
flags are helpful to just see what things look like at the end without having to generate the full animation. It can also be helpful to use the -n
flag to skip over some number of animations.
Documentation is in progress at manim.readthedocs.io.
Todd Zimmerman put together a tutorial on getting started with manim, which has been updated to run on python 3.7.
Is always welcome. In particular, there is a dire need for tests and documentation.
All files in the directories active_projects and old_projects, which by and large generate the visuals for 3b1b videos, are copyright 3Blue1Brown.
The general purpose animation code found in the remainder of the repository, on the other hand, is under the MIT license.
Note: all 3Blue1Brown copyrighted content removed from this repository (I think).