3b1b-manim/manimlib/imports.py

38 lines
1.2 KiB
Python
Raw Normal View History

"""
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
2019-05-02 20:36:14 -07:00
"from manimlib.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
2018-05-03 17:48:09 +02:00
as a convenience for scripts creating scenes for videos.
"""
2018-08-09 17:56:05 -07:00
from manimlib.shortcuts import *
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 *
# Non manim libraries that are also nice to have without thinking
import inspect
import itertools as it
import numpy as np
import operator as op
import os
import random
import re
import string
import sys
import math
from PIL import Image
from colour import Color