mirror of
https://github.com/3b1b/manim.git
synced 2025-08-02 11:03:03 +08:00
29 lines
651 B
Python
29 lines
651 B
Python
#!/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, SceneFromVideo
|
|
from script_wrapper import command_line_create_scene
|
|
|
|
|
|
class SampleScene(SceneFromVideo):
|
|
def construct(self):
|
|
path = os.path.join(MOVIE_DIR, "LogoGeneration.mp4")
|
|
SceneFromVideo.construct(self, path)
|
|
self.animate_over_time_range(
|
|
0, 3,
|
|
ApplyMethod(Dot().to_edge(LEFT).to_edge, RIGHT)
|
|
)
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
command_line_create_scene() |