3b1b-manim/sample_script.py

28 lines
569 B
Python
Raw Normal View History

2015-06-10 22:00:35 -07:00
#!/usr/bin/env python
import numpy as np
import itertools as it
from copy import deepcopy
import sys
from animation import *
from mobject import *
from constants import *
from region import *
from scene import Scene
2015-06-10 22:00:35 -07:00
from script_wrapper import command_line_create_scene
class SampleScene(Scene):
2015-06-10 22:00:35 -07:00
def construct(self):
2015-10-20 21:55:46 -07:00
words = text_mobject("Hi There")
self.paint_into_background(words.shift(UP).highlight(RED_A))
self.paint_into_background(words.shift(DOWN).highlight(RED_E))
2015-10-12 19:39:46 -07:00
2015-06-10 22:00:35 -07:00
if __name__ == "__main__":
2015-06-19 08:31:02 -07:00
command_line_create_scene()