Animation engine for explanatory math videos
Find a file
2016-09-03 12:29:17 -07:00
animation Rough drafts for chapter 8 parts 2016-08-30 22:17:07 -07:00
eola Published chapter 8 2016-09-01 11:11:57 -07:00
mobject Published chapter 8 2016-09-01 11:11:57 -07:00
old_projects A nice small commit capturing one atomic change, as usual 2016-08-25 17:15:48 -07:00
scene A nice small commit capturing one atomic change, as usual 2016-08-25 17:15:48 -07:00
topics Rough drafts for chapter 8 parts 2016-08-30 22:17:07 -07:00
.gitignore Random cleanup 2016-07-12 10:34:35 -07:00
__init__.py Beginning Hilbert project 2015-11-23 10:34:42 -08:00
camera.py Scene no longer cares about pointless mobjects 2016-07-18 14:03:25 -07:00
constants.py More finishing touches to chapter 7 2016-08-24 10:57:16 -07:00
example_scenes.py modification to requirements/example_scenes to make it slightly less unusable 2016-09-03 12:29:17 -07:00
extract_scene.py A nice small commit capturing one atomic change, as usual 2016-08-25 17:15:48 -07:00
helpers.py Rough drafts for chapter 8 parts 2016-08-30 22:17:07 -07:00
README.md modification to requirements/example_scenes to make it slightly less unusable 2016-09-03 12:29:17 -07:00
requirements.txt modification to requirements/example_scenes to make it slightly less unusable 2016-09-03 12:29:17 -07:00
stage_animations.py Finished triangle of power project 2016-05-03 23:14:40 -07:00
template.tex TexMobjects are looking pretty good 2016-04-17 12:59:53 -07:00
text_template.tex Vectorize all the things 2016-04-17 00:31:38 -07:00

animations

Animation engine for explanatory math videos

For those who want to play around with this tool, I should be upfront that I've mostly had my own use cases (i.e. 3b1b videos) in mind while building it, and it might not be the most friendly thing to get up and running. In particular, I have not done a great job tracking requirements, and documentation is..well..sparse.

Install requirements

pip install -r requirements.txt

Requirements to be installed outside of pip: aggdraw ffmpeg latex

Here are directions that should work on any 64 bit platform (tested on osx 10.11.4)

This doesn't install freetype, but I don't think its required for this project

cd $TMPDIR
git clone https://github.com/scottopell/aggdraw-64bits
cd aggdraw-64bits
/usr/local/bin/python setup.py build_ext -i
/usr/local/bin/python setup.py install

How to Use

Try running the following:

python extract_scene.py -p example_scenes.py SquareToCircle

-p gives a preview of an animation, -w will write it to a file, and -s will show/save the final image in the animation.