mirror of
https://github.com/3b1b/manim.git
synced 2025-11-14 12:57:45 +00:00
Moved many folders from topics/ to the new once_useful_constructs/
This commit is contained in:
parent
b757f8b422
commit
b9edafa942
19 changed files with 25 additions and 186 deletions
|
|
@ -1,33 +1,4 @@
|
|||
from constants import *
|
||||
|
||||
from mobject.tex_mobject import TexMobject
|
||||
from mobject.mobject import Mobject
|
||||
from mobject.image_mobject import ImageMobject
|
||||
from mobject.vectorized_mobject import *
|
||||
|
||||
from animation.animation import Animation
|
||||
from animation.transform import *
|
||||
from animation.simple_animations import *
|
||||
from animation.composition import *
|
||||
from animation.playground import *
|
||||
from topics.geometry import *
|
||||
from topics.characters import *
|
||||
from topics.functions import *
|
||||
from topics.fractals import *
|
||||
from topics.number_line import *
|
||||
from topics.combinatorics import *
|
||||
from topics.numerals import *
|
||||
from topics.three_dimensions import *
|
||||
from topics.objects import *
|
||||
from topics.complex_numbers import *
|
||||
from topics.common_scenes import *
|
||||
from topics.probability import *
|
||||
from scene.scene import Scene
|
||||
from scene.reconfigurable_scene import ReconfigurableScene
|
||||
from scene.zoomed_scene import *
|
||||
from camera.camera import Camera
|
||||
from mobject.svg_mobject import *
|
||||
from mobject.tex_mobject import *
|
||||
from big_ol_pile_of_manim_imports import *
|
||||
|
||||
#revert_to_original_skipping_status
|
||||
|
||||
|
|
|
|||
|
|
@ -1,33 +1,4 @@
|
|||
from constants import *
|
||||
|
||||
from mobject.tex_mobject import TexMobject
|
||||
from mobject.mobject import Mobject
|
||||
from mobject.image_mobject import ImageMobject
|
||||
from mobject.vectorized_mobject import *
|
||||
|
||||
from animation.animation import Animation
|
||||
from animation.transform import *
|
||||
from animation.simple_animations import *
|
||||
from animation.composition import *
|
||||
from animation.playground import *
|
||||
from topics.geometry import *
|
||||
from topics.characters import *
|
||||
from topics.functions import *
|
||||
from topics.fractals import *
|
||||
from topics.number_line import *
|
||||
from topics.combinatorics import *
|
||||
from topics.numerals import *
|
||||
from topics.three_dimensions import *
|
||||
from topics.objects import *
|
||||
from topics.complex_numbers import *
|
||||
from topics.common_scenes import *
|
||||
from topics.probability import *
|
||||
from scene.scene import Scene
|
||||
from scene.reconfigurable_scene import ReconfigurableScene
|
||||
from scene.zoomed_scene import *
|
||||
from camera.camera import Camera
|
||||
from mobject.svg_mobject import *
|
||||
from mobject.tex_mobject import *
|
||||
from big_ol_pile_of_manim_imports import *
|
||||
|
||||
from eop.bayes import IntroducePokerHand
|
||||
|
||||
|
|
|
|||
|
|
@ -1,36 +1,4 @@
|
|||
from constants import *
|
||||
|
||||
from mobject.tex_mobject import TexMobject
|
||||
from mobject.mobject import Mobject
|
||||
from mobject.image_mobject import ImageMobject
|
||||
from mobject.vectorized_mobject import *
|
||||
|
||||
from animation.animation import Animation
|
||||
from animation.transform import *
|
||||
from animation.simple_animations import *
|
||||
from animation.composition import *
|
||||
from animation.playground import *
|
||||
from animation.continual_animation import *
|
||||
from topics.geometry import *
|
||||
from topics.characters import *
|
||||
from topics.functions import *
|
||||
from topics.fractals import *
|
||||
from topics.number_line import *
|
||||
from topics.combinatorics import *
|
||||
from topics.numerals import *
|
||||
from topics.three_dimensions import *
|
||||
from topics.objects import *
|
||||
from topics.probability import *
|
||||
from topics.complex_numbers import *
|
||||
from scene.scene import Scene
|
||||
from scene.reconfigurable_scene import ReconfigurableScene
|
||||
from scene.zoomed_scene import *
|
||||
from camera.camera import Camera
|
||||
from mobject.svg_mobject import *
|
||||
from mobject.tex_mobject import *
|
||||
from topics.graph_scene import *
|
||||
from topics.probability import *
|
||||
from topics.common_scenes import *
|
||||
from big_ol_pile_of_manim_imports import *
|
||||
|
||||
#revert_to_original_skipping_status
|
||||
|
||||
|
|
|
|||
|
|
@ -1,33 +1,4 @@
|
|||
from constants import *
|
||||
|
||||
from mobject.tex_mobject import TexMobject
|
||||
from mobject.mobject import Mobject
|
||||
from mobject.image_mobject import ImageMobject
|
||||
from mobject.vectorized_mobject import *
|
||||
|
||||
from animation.animation import Animation
|
||||
from animation.transform import *
|
||||
from animation.simple_animations import *
|
||||
from animation.composition import *
|
||||
from animation.playground import *
|
||||
from topics.geometry import *
|
||||
from topics.characters import *
|
||||
from topics.functions import *
|
||||
from topics.fractals import *
|
||||
from topics.number_line import *
|
||||
from topics.combinatorics import *
|
||||
from topics.numerals import *
|
||||
from topics.three_dimensions import *
|
||||
from topics.objects import *
|
||||
from topics.complex_numbers import *
|
||||
from topics.common_scenes import *
|
||||
from topics.probability import *
|
||||
from scene.scene import Scene
|
||||
from scene.reconfigurable_scene import ReconfigurableScene
|
||||
from scene.zoomed_scene import *
|
||||
from camera.camera import Camera
|
||||
from mobject.svg_mobject import *
|
||||
from mobject.tex_mobject import *
|
||||
from big_ol_pile_of_manim_imports import *
|
||||
|
||||
from scene.scene import ProgressDisplay
|
||||
import scipy
|
||||
|
|
|
|||
|
|
@ -25,8 +25,8 @@ from animation.transform import *
|
|||
from animation.update import *
|
||||
|
||||
from camera.camera import *
|
||||
from camera.moving_camera import *
|
||||
from camera.mapping_camera import *
|
||||
from camera.moving_camera import *
|
||||
|
||||
from continual_animation.continual_animation import *
|
||||
from continual_animation.from_animation import *
|
||||
|
|
@ -49,16 +49,18 @@ from scene.scene import *
|
|||
from scene.scene_from_video import *
|
||||
from scene.zoomed_scene import *
|
||||
|
||||
from topics.arithmetic import *
|
||||
from topics.combinatorics import *
|
||||
from once_useful_constructs.arithmetic import *
|
||||
from once_useful_constructs.combinatorics import *
|
||||
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 *
|
||||
|
||||
from topics.common_scenes import *
|
||||
from topics.complex_numbers import *
|
||||
from topics.counting import *
|
||||
from topics.fractals import *
|
||||
from topics.functions import *
|
||||
from topics.geometry import *
|
||||
from topics.graph_scene import *
|
||||
from topics.graph_theory import *
|
||||
from topics.matrix import *
|
||||
from topics.number_line import *
|
||||
from topics.numerals import *
|
||||
|
|
@ -89,6 +91,7 @@ import os
|
|||
import random
|
||||
import re
|
||||
import string
|
||||
import sys
|
||||
|
||||
from PIL import Image
|
||||
from colour import Color
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
from big_ol_pile_of_manim_imports import *
|
||||
|
||||
from old_projects.basel.light import *
|
||||
from once_useful_constructs.light import *
|
||||
|
||||
import types
|
||||
import functools
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
from big_ol_pile_of_manim_imports import *
|
||||
from old_projects.basel.light import *
|
||||
from once_useful_constructs.light import *
|
||||
|
||||
import types
|
||||
import functools
|
||||
|
|
|
|||
|
|
@ -7,34 +7,7 @@ import os.path
|
|||
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
|
||||
from constants import *
|
||||
|
||||
from mobject.tex_mobject import TexMobject
|
||||
from mobject.mobject import Mobject, Group
|
||||
from mobject.image_mobject import ImageMobject
|
||||
from mobject.vectorized_mobject import *
|
||||
|
||||
from animation.animation import Animation
|
||||
from animation.transform import *
|
||||
from animation.simple_animations import *
|
||||
from animation.composition import *
|
||||
from animation.playground import *
|
||||
from animation.continual_animation import *
|
||||
from topics.geometry import *
|
||||
from topics.characters import *
|
||||
from topics.functions import *
|
||||
from topics.fractals import *
|
||||
from topics.number_line import *
|
||||
from topics.combinatorics import *
|
||||
from topics.numerals import *
|
||||
from topics.three_dimensions import *
|
||||
from topics.objects import *
|
||||
from topics.probability import *
|
||||
from topics.complex_numbers import *
|
||||
from scene.scene import Scene
|
||||
from scene.reconfigurable_scene import ReconfigurableScene
|
||||
from scene.zoomed_scene import *
|
||||
from camera.camera import Camera
|
||||
from mobject.svg_mobject import *
|
||||
from mobject.tex_mobject import *
|
||||
from big_ol_pile_of_manim_imports import *
|
||||
|
||||
from nn.network import *
|
||||
from nn.part1 import *
|
||||
|
|
|
|||
1
once_useful_constructs/NOTE.md
Normal file
1
once_useful_constructs/NOTE.md
Normal file
|
|
@ -0,0 +1 @@
|
|||
This folder contains a collection of various things that were built for a video at some point, but were really one-off and should be given more careful consideration before being brought into the main library. In particular, there is really no guarantee of these being fully functional.
|
||||
0
once_useful_constructs/__init__.py
Normal file
0
once_useful_constructs/__init__.py
Normal file
|
|
@ -13,7 +13,6 @@ from animation.transform import Transform
|
|||
from topics.geometry import Arrow
|
||||
from topics.geometry import Circle
|
||||
from topics.geometry import Dot
|
||||
# from topics.fractals import *
|
||||
from scene.scene import Scene
|
||||
|
||||
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
from animation.creation import ShowCreation
|
||||
from animation.transform import Transform
|
||||
from characters import PiCreature
|
||||
from characters import Randolph
|
||||
from characters import get_all_pi_creature_modes
|
||||
from pi_creature.pi_creature import PiCreature
|
||||
from pi_creature.pi_creature import Randolph
|
||||
from pi_creature.pi_creature import get_all_pi_creature_modes
|
||||
from mobject.vectorized_mobject import VGroup
|
||||
from mobject.vectorized_mobject import VMobject
|
||||
from mobject.vectorized_mobject import VectorizedPoint
|
||||
|
|
@ -22,7 +22,6 @@ from utils.space_ops import rotation_matrix
|
|||
|
||||
from constants import *
|
||||
|
||||
|
||||
def rotate(points, angle = np.pi, axis = OUT):
|
||||
if axis is None:
|
||||
return points
|
||||
|
|
@ -277,8 +276,6 @@ class CircularFractal(SelfSimilarFractal):
|
|||
part.rotate(i*2*np.pi/self.num_subparts, about_point = ORIGIN)
|
||||
self.num_subparts -= 1
|
||||
|
||||
|
||||
|
||||
######## Space filling curves ############
|
||||
|
||||
class JaggedCurvePiece(VMobject):
|
||||
|
|
@ -12,9 +12,9 @@ from mobject.tex_mobject import TexMobject
|
|||
from mobject.tex_mobject import TextMobject
|
||||
from mobject.vectorized_mobject import VGroup
|
||||
from scene.scene import Scene
|
||||
from topics.characters import Blink
|
||||
from topics.characters import Mortimer
|
||||
from topics.characters import Randolph
|
||||
from pi_creature.pi_creature_animations import Blink
|
||||
from pi_creature.pi_creature import Mortimer
|
||||
from pi_creature.pi_creature import Randolph
|
||||
from topics.geometry import DashedLine
|
||||
from topics.geometry import Rectangle
|
||||
from topics.geometry import Square
|
||||
|
|
@ -209,17 +209,3 @@ class TODOStub(Scene):
|
|||
self.add(TextMobject("TODO: %s"%self.message))
|
||||
self.wait()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -518,7 +518,7 @@ class Car(SVGMobject):
|
|||
self.set_stroke(color = WHITE, width = 0)
|
||||
self.set_fill(self.color, opacity = 1)
|
||||
|
||||
from topics.characters import Randolph
|
||||
from pi_creature.pi_creature import Randolph
|
||||
randy = Randolph(mode = "happy")
|
||||
randy.scale_to_fit_height(0.6*self.get_height())
|
||||
randy.stretch(0.8, 0)
|
||||
|
|
|
|||
|
|
@ -382,7 +382,6 @@ class BarChart(VGroup):
|
|||
def copy(self):
|
||||
return self.deepcopy()
|
||||
|
||||
|
||||
### Cards ###
|
||||
|
||||
class DeckOfCards(VGroup):
|
||||
|
|
@ -542,7 +541,7 @@ class PlayingCard(VGroup):
|
|||
return design
|
||||
|
||||
def get_face_card_design(self, value, symbol):
|
||||
from topics.characters import PiCreature
|
||||
from pi_creature.pi_creature import PiCreature
|
||||
sub_rect = Rectangle(
|
||||
stroke_color = BLACK,
|
||||
fill_opacity = 0,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue