mirror of
https://github.com/3b1b/manim.git
synced 2025-07-30 05:24:22 +08:00
25 lines
579 B
Python
25 lines
579 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
|
|
from script_wrapper import command_line_create_scene
|
|
|
|
|
|
class SampleScene(Scene):
|
|
def construct(self):
|
|
plane = NumberPlane()
|
|
arrow1 = Arrow(ORIGIN, UP, color = "green", point_thickness = 5)
|
|
arrow2 = Arrow(ORIGIN, LEFT, color = "Red")
|
|
self.add(plane, arrow1, arrow2)
|
|
|
|
if __name__ == "__main__":
|
|
command_line_create_scene() |