mirror of
https://github.com/3b1b/manim.git
synced 2025-07-31 22:13:30 +08:00
First draft of music and measure theory
This commit is contained in:
@ -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()
|
Reference in New Issue
Block a user