First draft of music and measure theory

This commit is contained in:
Grant Sanderson
2015-09-30 14:22:17 -07:00
parent 0d60cf6207
commit 42a8e166f0
7 changed files with 739 additions and 68 deletions

View File

@ -10,16 +10,18 @@ from animation import *
from mobject import *
from constants import *
from region import *
from scene import Scene
from scene import Scene, NumberLineScene
from script_wrapper import command_line_create_scene
class SampleScene(Scene):
class SampleScene(NumberLineScene):
def construct(self):
square = Square()
self.add(square)
self.dither()
self.play(Flash(square))
NumberLineScene.construct(self)
arrow = Arrow(2*RIGHT+UP, 2*RIGHT)
self.add(arrow)
self.dither(2)
self.zoom_in_on(2.4, zoom_factor = 10)
self.dither(2)
if __name__ == "__main__":
command_line_create_scene()