mirror of
https://github.com/3b1b/manim.git
synced 2025-07-28 20:43:56 +08:00

Also moved some shortcuts into manimlib, to be able to use it without the big_ol_pile_of_manim_imports script. Updated the README to explain installation via pip
38 lines
1.2 KiB
Python
38 lines
1.2 KiB
Python
"""
|
|
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 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
|
|
as a convenience for scripts creating scenes for videos.
|
|
"""
|
|
|
|
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
|