A community-maintained Python framework for creating mathematical animations.
Added a few example scenes
Grant Sandersonfd86816b6663
diff --git a/.gitignore b/.gitignoreindex 4ca34374c..d7e368c95 100644--- a/.gitignore+++ b/.gitignore@@ -1,2 +1,7 @@*.pycanimation_files/+.DS_Store+homeless.py+ka_playgrounds/+playground.py+prettiness_hall_of_fame.pydiff --git a/README.md b/README.mdindex 57bf5bc1c..30d8e4a58 100644--- a/README.md+++ b/README.md@@ -27,16 +27,6 @@ cd aggdraw-64bits```## How to Use-Not exactly sure. I think I'm supposed to run `python extract_scene.py-generate_logo.py`, but that fails with the following error.+Try running the following:+python extract_scene.py -p example_scenes.py SquareToCircle-```-Traceback (most recent call last):- File "extract_scene.py", line 205, in main- handle_scene(SceneClass(**scene_kwargs), **config)- File "/Users/scott/scratch/manim/scene/scene.py", line 32, in __init__- self.construct(*self.construct_args)- File "/Users/scott/scratch/manim/./generate_logo.py", line 50, in construct- self.interpolation_factor-TypeError: interpolate() takes exactly 5 arguments (4 given)-```diff --git a/example_scenes.py b/example_scenes.pyindex 9e1458f45..505d8b590 100644--- a/example_scenes.py+++ b/example_scenes.py@@ -25,7 +25,7 @@ from mobject.vectorized_mobject import *## To watch one of these scenes, run the following:-## python extract_scene.py -p <SceneName>+## python extract_scenes.py -p <SceneName>class SquareToCircle(Scene):def construct(self):@@ -35,8 +35,18 @@ class SquareToCircle(Scene):self.play(Transform(square, circle))self.dither()+class WarpSquare(Scene):+ def construct(self):+ square = Square()+ self.play(ApplyPointwiseFunction(+ lambda (x, y, z) : complex_to_R3(np.exp(complex(x, y))),+ square+ ))+ self.dither()-+class WriteStuff(Scene):+ def construct(self):+ self.play(Write(TextMobject("Stuff").scale(3)))