Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

modification to requirements/example_scenes to make it slightly less unusable

Grant Sandersona3fa16ebcbc9
diff --git a/README.md b/README.md
index 59f0757a3..5c3eb07f1 100644
--- a/README.md
+++ b/README.md
@@ -1,14 +1,21 @@
# animations
Animation engine for explanatory math videos
-updates coming...
+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
```sh
pip install -r requirements.txt
```
-`aggdraw` has to be installed manually, pip can't do it for you.
+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)
@@ -25,4 +32,7 @@ cd aggdraw-64bits
## 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.
diff --git a/example_scenes.py b/example_scenes.py
index 505d8b590..1340f3a53 100644
--- a/example_scenes.py
+++ b/example_scenes.py
@@ -23,14 +23,14 @@ from mobject.tex_mobject import *
from mobject.vectorized_mobject import *
-
## To watch one of these scenes, run the following:
-## python extract_scenes.py -p <SceneName>
+## python extract_scenes.py -p file_name <SceneName>
class SquareToCircle(Scene):
def construct(self):
circle = Circle()
square = Square()
+ square.rotate(np.pi/8)
self.play(ShowCreation(square))
self.play(Transform(square, circle))
self.dither()
diff --git a/requirements.txt b/requirements.txt
index 447e84929..d744d4965 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,4 +1,3 @@
-aggdraw===2.0
colour==0.1.2
numpy==1.11.0
Pillow==1.7.8