2018-03-30 12:56:29 -07:00
|
|
|
"""
|
|
|
|
I won't pretend like this is best practice, by in creating animations for a video,
|
2018-04-06 13:58:59 -07:00
|
|
|
it can be very nice to simply have all of the Mobjects, Animations, Scenes, etc.
|
2018-03-30 12:56:29 -07:00
|
|
|
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
|
2018-04-06 13:58:59 -07:00
|
|
|
script, the intent of this file is to make it so that one can just include
|
2018-03-30 12:56:29 -07:00
|
|
|
"from big_ol_pile_of_manim_imports import *". The effects of adding more modules
|
2018-04-06 13:58:59 -07:00
|
|
|
or refactoring the library on current or older scene scripts should be entirely
|
2018-03-30 12:56:29 -07:00
|
|
|
addressible by changing this file.
|
|
|
|
|
|
|
|
Note: One should NOT import from this file for main library code, it is meant only
|
2018-05-03 17:48:09 +02:00
|
|
|
as a convenience for scripts creating scenes for videos.
|
2018-03-30 12:56:29 -07:00
|
|
|
"""
|
2018-08-09 17:56:05 -07:00
|
|
|
|
2018-03-30 12:56:29 -07:00
|
|
|
|
2018-12-24 12:37:51 -08:00
|
|
|
from manimlib.constants import *
|
2018-03-30 12:56:29 -07:00
|
|
|
|
2018-12-24 12:37:51 -08:00
|
|
|
from manimlib.animation.animation import *
|
|
|
|
from manimlib.animation.composition import *
|
|
|
|
from manimlib.animation.creation import *
|
2019-02-09 09:08:57 -08:00
|
|
|
from manimlib.animation.fading import *
|
|
|
|
from manimlib.animation.growing import *
|
2018-12-24 12:37:51 -08:00
|
|
|
from manimlib.animation.indication import *
|
|
|
|
from manimlib.animation.movement import *
|
|
|
|
from manimlib.animation.numbers import *
|
|
|
|
from manimlib.animation.rotation import *
|
|
|
|
from manimlib.animation.specialized import *
|
|
|
|
from manimlib.animation.transform import *
|
|
|
|
from manimlib.animation.update import *
|
2018-03-30 12:56:29 -07:00
|
|
|
|
2018-12-24 12:37:51 -08:00
|
|
|
from manimlib.camera.camera import *
|
|
|
|
from manimlib.camera.mapping_camera import *
|
|
|
|
from manimlib.camera.moving_camera import *
|
|
|
|
from manimlib.camera.three_d_camera import *
|
2018-03-30 12:56:29 -07:00
|
|
|
|
2018-12-24 12:37:51 -08:00
|
|
|
from manimlib.mobject.coordinate_systems import *
|
|
|
|
from manimlib.mobject.frame import *
|
|
|
|
from manimlib.mobject.functions import *
|
|
|
|
from manimlib.mobject.geometry import *
|
|
|
|
from manimlib.mobject.matrix import *
|
|
|
|
from manimlib.mobject.mobject import *
|
|
|
|
from manimlib.mobject.number_line import *
|
|
|
|
from manimlib.mobject.numbers import *
|
|
|
|
from manimlib.mobject.probability import *
|
|
|
|
from manimlib.mobject.shape_matchers import *
|
|
|
|
from manimlib.mobject.svg.brace import *
|
|
|
|
from manimlib.mobject.svg.drawings import *
|
|
|
|
from manimlib.mobject.svg.svg_mobject import *
|
|
|
|
from manimlib.mobject.svg.tex_mobject import *
|
|
|
|
from manimlib.mobject.three_d_utils import *
|
|
|
|
from manimlib.mobject.three_dimensions import *
|
|
|
|
from manimlib.mobject.types.image_mobject import *
|
|
|
|
from manimlib.mobject.types.point_cloud_mobject import *
|
|
|
|
from manimlib.mobject.types.vectorized_mobject import *
|
2019-02-11 12:51:50 -08:00
|
|
|
from manimlib.mobject.mobject_update_utils import *
|
2018-12-24 12:37:51 -08:00
|
|
|
from manimlib.mobject.value_tracker import *
|
2019-03-17 06:42:49 -07:00
|
|
|
from manimlib.mobject.vector_field import *
|
2018-03-30 12:56:29 -07:00
|
|
|
|
2018-12-24 12:37:51 -08:00
|
|
|
from manimlib.for_3b1b_videos.common_scenes import *
|
|
|
|
from manimlib.for_3b1b_videos.pi_creature import *
|
|
|
|
from manimlib.for_3b1b_videos.pi_creature_animations import *
|
|
|
|
from manimlib.for_3b1b_videos.pi_creature_scene import *
|
2018-03-31 16:07:24 -07:00
|
|
|
|
2018-12-24 12:37:51 -08:00
|
|
|
from manimlib.once_useful_constructs.arithmetic import *
|
|
|
|
from manimlib.once_useful_constructs.combinatorics import *
|
|
|
|
from manimlib.once_useful_constructs.complex_transformation_scene import *
|
|
|
|
from manimlib.once_useful_constructs.counting import *
|
|
|
|
from manimlib.once_useful_constructs.fractals import *
|
|
|
|
from manimlib.once_useful_constructs.graph_theory import *
|
|
|
|
from manimlib.once_useful_constructs.light import *
|
2018-03-31 16:28:02 -07:00
|
|
|
|
2018-12-24 12:37:51 -08:00
|
|
|
from manimlib.scene.graph_scene import *
|
|
|
|
from manimlib.scene.moving_camera_scene import *
|
|
|
|
from manimlib.scene.reconfigurable_scene import *
|
|
|
|
from manimlib.scene.scene import *
|
|
|
|
from manimlib.scene.sample_space_scene import *
|
|
|
|
from manimlib.scene.graph_scene import *
|
|
|
|
from manimlib.scene.scene_from_video import *
|
|
|
|
from manimlib.scene.three_d_scene import *
|
|
|
|
from manimlib.scene.vector_space_scene import *
|
|
|
|
from manimlib.scene.zoomed_scene import *
|
2018-03-30 12:56:29 -07:00
|
|
|
|
2018-12-24 12:37:51 -08:00
|
|
|
from manimlib.utils.bezier import *
|
|
|
|
from manimlib.utils.color import *
|
|
|
|
from manimlib.utils.config_ops import *
|
|
|
|
from manimlib.utils.images import *
|
|
|
|
from manimlib.utils.iterables import *
|
2019-01-24 21:47:40 -08:00
|
|
|
from manimlib.utils.file_ops import *
|
2018-12-24 12:37:51 -08:00
|
|
|
from manimlib.utils.paths import *
|
|
|
|
from manimlib.utils.rate_functions import *
|
|
|
|
from manimlib.utils.simple_functions import *
|
|
|
|
from manimlib.utils.sounds import *
|
|
|
|
from manimlib.utils.space_ops import *
|
|
|
|
from manimlib.utils.strings import *
|
2018-03-30 18:19:23 -07:00
|
|
|
|
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-07-08 22:26:11 -04:00
|
|
|
import math
|
2018-03-31 15:11:35 -07:00
|
|
|
|
2018-03-30 12:56:29 -07:00
|
|
|
from PIL import Image
|
|
|
|
from colour import Color
|