A community-maintained Python framework for creating mathematical animations.
Add a testing script
Mehmet Mert Yildiran7d534ab0d4c3
diff --git a/constants.py b/constants.pyindex af3fc0ef0..4478e211e 100644--- a/constants.py+++ b/constants.py@@ -20,7 +20,7 @@ elif os.path.exists("media_dir.txt"):else:MEDIA_DIR = os.path.join(os.path.expanduser('~'),- "Dropbox (3Blue1Brown)/3Blue1Brown Team Folder"+ "Videos/")if not os.path.exists(MEDIA_DIR):diff --git a/test1.py b/test1.pynew file mode 100644index 000000000..5fca056b3--- /dev/null+++ b/test1.py@@ -0,0 +1,17 @@+from big_ol_pile_of_manim_imports import *++class Shapes(Scene):+ #A few simple shapes+ def construct(self):+ circle = Circle()+ square = Square()+ line=Line(np.array([3,0,0]),np.array([5,0,0]))+ triangle=Polygon(np.array([0,0,0]),np.array([1,1,0]),np.array([1,-1,0]))++ self.add(line)+ self.play(ShowCreation(circle))+ self.play(FadeOut(circle))+ self.play(GrowFromCenter(square))+ self.play(Transform(square,triangle))++#python3 extract_scene.py test1.py Shapes -r 1080