From 7d534ab0d4c3982eaf30dd51c0e7e1ad19b1863e Mon Sep 17 00:00:00 2001 From: Mehmet Mert Yildiran Date: Tue, 30 Oct 2018 06:39:45 +0300 Subject: [PATCH] Add a testing script --- constants.py | 2 +- test1.py | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 test1.py diff --git a/constants.py b/constants.py index af3fc0ef..4478e211 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.py new file mode 100644 index 00000000..5fca056b --- /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