2018-10-30 07:37:32 +03:00
|
|
|
#!/usr/bin/python3
|
|
|
|
|
|
|
|
from constants import *
|
|
|
|
from scene.scene import Scene
|
|
|
|
|
|
|
|
|
|
|
|
class Manim():
|
|
|
|
|
2018-10-30 18:25:01 +03:00
|
|
|
def __new__(cls):
|
|
|
|
kwargs = {
|
2018-10-30 18:30:34 +03:00
|
|
|
"scene_name": LIVE_STREAM_NAME,
|
2018-10-30 07:37:32 +03:00
|
|
|
"open_video_upon_completion": False,
|
|
|
|
"show_file_in_finder": False,
|
|
|
|
# By default, write to file
|
|
|
|
"write_to_movie": True,
|
|
|
|
"show_last_frame": False,
|
|
|
|
"save_pngs": False,
|
|
|
|
# If -t is passed in (for transparent), this will be RGBA
|
|
|
|
"saved_image_mode": "RGB",
|
|
|
|
"movie_file_extension": ".mp4",
|
|
|
|
"quiet": True,
|
|
|
|
"ignore_waits": False,
|
|
|
|
"write_all": False,
|
2018-10-30 18:30:34 +03:00
|
|
|
"name": LIVE_STREAM_NAME,
|
2018-10-30 07:37:32 +03:00
|
|
|
"start_at_animation_number": 0,
|
|
|
|
"end_at_animation_number": None,
|
|
|
|
"skip_animations": False,
|
|
|
|
"camera_config": HIGH_QUALITY_CAMERA_CONFIG,
|
2018-11-03 21:05:20 +03:00
|
|
|
"frame_duration": MEDIUM_QUALITY_FRAME_DURATION,
|
2018-10-30 07:37:32 +03:00
|
|
|
}
|
2018-10-30 18:25:01 +03:00
|
|
|
return Scene(**kwargs)
|