2018-03-30 12:56:29 -07:00
|
|
|
"""
|
|
|
|
I won't pretend like this is best practice, by in creating animations for a video,
|
|
|
|
it can be very nice to simply have all of the Mobjects, Animations, Scenes, etc.
|
|
|
|
of manim available without having to worry about what namespace they come from.
|
|
|
|
|
|
|
|
Rather than having a large pile of "from <module> import *" at the top of every such
|
|
|
|
script, the intent of this file is to make it so that one can just include
|
|
|
|
"from big_ol_pile_of_manim_imports import *". The effects of adding more modules
|
|
|
|
or refactoring the library on current or older scene scripts should be entirely
|
|
|
|
addressible by changing this file.
|
|
|
|
|
|
|
|
Note: One should NOT import from this file for main library code, it is meant only
|
|
|
|
as a convenience for scripts createing scenes for videos
|
|
|
|
"""
|
|
|
|
|
|
|
|
from constants import *
|
|
|
|
|
|
|
|
from animation.animation import *
|
2018-03-31 15:11:35 -07:00
|
|
|
from animation.composition import *
|
|
|
|
from animation.creation import *
|
|
|
|
from animation.indication import *
|
|
|
|
from animation.movement import *
|
2018-03-31 18:49:28 -07:00
|
|
|
from animation.numbers import *
|
2018-03-31 15:11:35 -07:00
|
|
|
from animation.rotation import *
|
2018-03-31 18:05:02 -07:00
|
|
|
from animation.specialized import *
|
2018-03-30 12:56:29 -07:00
|
|
|
from animation.transform import *
|
2018-03-31 15:11:35 -07:00
|
|
|
from animation.update import *
|
2018-03-30 12:56:29 -07:00
|
|
|
|
|
|
|
from camera.camera import *
|
2018-03-31 15:20:30 -07:00
|
|
|
from camera.mapping_camera import *
|
2018-03-31 16:28:02 -07:00
|
|
|
from camera.moving_camera import *
|
2018-04-01 10:45:41 -07:00
|
|
|
from camera.three_d_camera import *
|
2018-03-30 12:56:29 -07:00
|
|
|
|
2018-03-31 15:11:35 -07:00
|
|
|
from continual_animation.continual_animation import *
|
2018-03-31 15:37:23 -07:00
|
|
|
from continual_animation.from_animation import *
|
2018-03-31 18:49:28 -07:00
|
|
|
from continual_animation.numbers import *
|
2018-03-31 15:37:23 -07:00
|
|
|
from continual_animation.update import *
|
2018-03-31 15:11:35 -07:00
|
|
|
|
2018-03-31 18:05:02 -07:00
|
|
|
from mobject.frame import *
|
2018-03-31 19:05:53 -07:00
|
|
|
from mobject.functions import *
|
2018-03-31 18:05:02 -07:00
|
|
|
from mobject.geometry import *
|
2018-04-01 10:45:41 -07:00
|
|
|
from mobject.matrix import *
|
2018-03-31 19:00:26 -07:00
|
|
|
from mobject.mobject import *
|
|
|
|
from mobject.number_line import *
|
2018-03-31 18:49:28 -07:00
|
|
|
from mobject.numbers import *
|
2018-04-01 10:45:41 -07:00
|
|
|
from mobject.probability import *
|
2018-03-31 18:05:02 -07:00
|
|
|
from mobject.shape_matchers import *
|
|
|
|
from mobject.svg.brace import *
|
|
|
|
from mobject.svg.svg_mobject import *
|
|
|
|
from mobject.svg.tex_mobject import *
|
2018-04-01 10:45:41 -07:00
|
|
|
from mobject.three_dimensions import *
|
2018-03-31 18:05:02 -07:00
|
|
|
from mobject.types.image_mobject import *
|
|
|
|
from mobject.types.point_cloud_mobject import *
|
|
|
|
from mobject.types.vectorized_mobject import *
|
2018-03-31 19:00:26 -07:00
|
|
|
from mobject.value_tracker import *
|
2018-03-30 12:56:29 -07:00
|
|
|
|
2018-03-31 19:00:26 -07:00
|
|
|
from for_3b1b_videos.common_scenes import *
|
2018-03-31 18:13:16 -07:00
|
|
|
from for_3b1b_videos.pi_creature import *
|
|
|
|
from for_3b1b_videos.pi_creature_animations import *
|
|
|
|
from for_3b1b_videos.pi_creature_scene import *
|
2018-03-31 16:07:24 -07:00
|
|
|
|
2018-03-31 19:05:53 -07:00
|
|
|
from scene.graph_scene import *
|
2018-03-30 12:56:29 -07:00
|
|
|
from scene.moving_camera_scene import *
|
|
|
|
from scene.reconfigurable_scene import *
|
|
|
|
from scene.scene import *
|
|
|
|
from scene.scene_from_video import *
|
2018-04-01 10:45:41 -07:00
|
|
|
from scene.three_d_scene import *
|
|
|
|
from scene.vector_space_scene import *
|
2018-03-30 12:56:29 -07:00
|
|
|
from scene.zoomed_scene import *
|
|
|
|
|
2018-03-31 16:28:02 -07:00
|
|
|
from once_useful_constructs.arithmetic import *
|
|
|
|
from once_useful_constructs.combinatorics import *
|
2018-03-31 18:57:21 -07:00
|
|
|
from once_useful_constructs.complex_transformation_scene import *
|
2018-03-31 16:28:02 -07:00
|
|
|
from once_useful_constructs.counting import *
|
|
|
|
from once_useful_constructs.fractals import *
|
|
|
|
from once_useful_constructs.graph_theory import *
|
|
|
|
from once_useful_constructs.light import *
|
|
|
|
|
2018-03-30 12:56:29 -07:00
|
|
|
|
2018-03-30 18:19:23 -07:00
|
|
|
from utils.bezier import *
|
|
|
|
from utils.color import *
|
|
|
|
from utils.config_ops import *
|
|
|
|
from utils.images import *
|
|
|
|
from utils.iterables import *
|
|
|
|
from utils.paths import *
|
|
|
|
from utils.rate_functions import *
|
|
|
|
from utils.simple_functions import *
|
|
|
|
from utils.sounds import *
|
|
|
|
from utils.space_ops import *
|
|
|
|
from utils.strings import *
|
|
|
|
|
2018-03-30 12:56:29 -07:00
|
|
|
# Non manim libraries that are also nice to have without thinking
|
|
|
|
|
2018-03-31 15:11:35 -07:00
|
|
|
import inspect
|
2018-03-30 12:56:29 -07:00
|
|
|
import itertools as it
|
2018-03-31 15:11:35 -07:00
|
|
|
import numpy as np
|
2018-03-30 12:56:29 -07:00
|
|
|
import operator as op
|
2018-03-31 15:11:35 -07:00
|
|
|
import os
|
2018-03-30 12:56:29 -07:00
|
|
|
import random
|
|
|
|
import re
|
2018-03-31 15:11:35 -07:00
|
|
|
import string
|
2018-03-31 16:28:02 -07:00
|
|
|
import sys
|
2018-03-31 15:11:35 -07:00
|
|
|
|
2018-03-30 12:56:29 -07:00
|
|
|
from PIL import Image
|
|
|
|
from colour import Color
|