Created
October 11, 2020 18:52
-
-
Save Elteoremadebeethoven/5124bcfd4681b5533f99a548108f81f5 to your computer and use it in GitHub Desktop.
spyder_manim_test.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# --------- IMPORTS | |
from manimlib.imports import * | |
from pathlib import Path | |
# ---------- FLAGS | |
RESOLUTION = "" | |
FLAGS = f"-pl {RESOLUTION}" | |
SCENE = "Test" | |
class Test(Scene): | |
def construct(self): | |
self.play( | |
Write(TextMobject("Hello world")) | |
) | |
if __name__ == '__main__': | |
script_name = f"{Path(__file__).resolve()}" | |
os.system(f"python -m manim {script_name} {SCENE} {FLAGS}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment