Moved many folders from topics/ to the new once_useful_constructs/

This commit is contained in:
Grant Sanderson 2018-03-31 16:28:02 -07:00
parent b757f8b422
commit b9edafa942
19 changed files with 25 additions and 186 deletions

View file

@ -1,33 +1,4 @@
from constants import * from big_ol_pile_of_manim_imports 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 *
#revert_to_original_skipping_status #revert_to_original_skipping_status

View file

@ -1,33 +1,4 @@
from constants import * from big_ol_pile_of_manim_imports 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 eop.bayes import IntroducePokerHand from eop.bayes import IntroducePokerHand

View file

@ -1,36 +1,4 @@
from constants import * from big_ol_pile_of_manim_imports 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 *
#revert_to_original_skipping_status #revert_to_original_skipping_status

View file

@ -1,33 +1,4 @@
from constants import * from big_ol_pile_of_manim_imports 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 scene.scene import ProgressDisplay from scene.scene import ProgressDisplay
import scipy import scipy

View file

@ -25,8 +25,8 @@ from animation.transform import *
from animation.update import * from animation.update import *
from camera.camera import * from camera.camera import *
from camera.moving_camera import *
from camera.mapping_camera import * from camera.mapping_camera import *
from camera.moving_camera import *
from continual_animation.continual_animation import * from continual_animation.continual_animation import *
from continual_animation.from_animation import * from continual_animation.from_animation import *
@ -49,16 +49,18 @@ from scene.scene import *
from scene.scene_from_video import * from scene.scene_from_video import *
from scene.zoomed_scene import * from scene.zoomed_scene import *
from topics.arithmetic import * from once_useful_constructs.arithmetic import *
from topics.combinatorics 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.common_scenes import *
from topics.complex_numbers import * from topics.complex_numbers import *
from topics.counting import *
from topics.fractals import *
from topics.functions import * from topics.functions import *
from topics.geometry import * from topics.geometry import *
from topics.graph_scene import * from topics.graph_scene import *
from topics.graph_theory import *
from topics.matrix import * from topics.matrix import *
from topics.number_line import * from topics.number_line import *
from topics.numerals import * from topics.numerals import *
@ -89,6 +91,7 @@ import os
import random import random
import re import re
import string import string
import sys
from PIL import Image from PIL import Image
from colour import Color from colour import Color

View file

@ -2,7 +2,7 @@
from big_ol_pile_of_manim_imports import * from big_ol_pile_of_manim_imports import *
from old_projects.basel.light import * from once_useful_constructs.light import *
import types import types
import functools import functools

View file

@ -2,7 +2,7 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from big_ol_pile_of_manim_imports import * from big_ol_pile_of_manim_imports import *
from old_projects.basel.light import * from once_useful_constructs.light import *
import types import types
import functools import functools

View file

@ -7,34 +7,7 @@ import os.path
sys.path.append(os.path.join(os.path.dirname(__file__), '..')) sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
from constants import * from constants import *
from mobject.tex_mobject import TexMobject from big_ol_pile_of_manim_imports import *
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 nn.network import * from nn.network import *
from nn.part1 import * from nn.part1 import *

View 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.

View file

View file

@ -13,7 +13,6 @@ from animation.transform import Transform
from topics.geometry import Arrow from topics.geometry import Arrow
from topics.geometry import Circle from topics.geometry import Circle
from topics.geometry import Dot from topics.geometry import Dot
# from topics.fractals import *
from scene.scene import Scene from scene.scene import Scene

View file

@ -1,8 +1,8 @@
from animation.creation import ShowCreation from animation.creation import ShowCreation
from animation.transform import Transform from animation.transform import Transform
from characters import PiCreature from pi_creature.pi_creature import PiCreature
from characters import Randolph from pi_creature.pi_creature import Randolph
from characters import get_all_pi_creature_modes from pi_creature.pi_creature import get_all_pi_creature_modes
from mobject.vectorized_mobject import VGroup from mobject.vectorized_mobject import VGroup
from mobject.vectorized_mobject import VMobject from mobject.vectorized_mobject import VMobject
from mobject.vectorized_mobject import VectorizedPoint from mobject.vectorized_mobject import VectorizedPoint
@ -22,7 +22,6 @@ from utils.space_ops import rotation_matrix
from constants import * from constants import *
def rotate(points, angle = np.pi, axis = OUT): def rotate(points, angle = np.pi, axis = OUT):
if axis is None: if axis is None:
return points return points
@ -277,8 +276,6 @@ class CircularFractal(SelfSimilarFractal):
part.rotate(i*2*np.pi/self.num_subparts, about_point = ORIGIN) part.rotate(i*2*np.pi/self.num_subparts, about_point = ORIGIN)
self.num_subparts -= 1 self.num_subparts -= 1
######## Space filling curves ############ ######## Space filling curves ############
class JaggedCurvePiece(VMobject): class JaggedCurvePiece(VMobject):

View file

@ -12,9 +12,9 @@ from mobject.tex_mobject import TexMobject
from mobject.tex_mobject import TextMobject from mobject.tex_mobject import TextMobject
from mobject.vectorized_mobject import VGroup from mobject.vectorized_mobject import VGroup
from scene.scene import Scene from scene.scene import Scene
from topics.characters import Blink from pi_creature.pi_creature_animations import Blink
from topics.characters import Mortimer from pi_creature.pi_creature import Mortimer
from topics.characters import Randolph from pi_creature.pi_creature import Randolph
from topics.geometry import DashedLine from topics.geometry import DashedLine
from topics.geometry import Rectangle from topics.geometry import Rectangle
from topics.geometry import Square from topics.geometry import Square
@ -209,17 +209,3 @@ class TODOStub(Scene):
self.add(TextMobject("TODO: %s"%self.message)) self.add(TextMobject("TODO: %s"%self.message))
self.wait() self.wait()

View file

@ -518,7 +518,7 @@ class Car(SVGMobject):
self.set_stroke(color = WHITE, width = 0) self.set_stroke(color = WHITE, width = 0)
self.set_fill(self.color, opacity = 1) self.set_fill(self.color, opacity = 1)
from topics.characters import Randolph from pi_creature.pi_creature import Randolph
randy = Randolph(mode = "happy") randy = Randolph(mode = "happy")
randy.scale_to_fit_height(0.6*self.get_height()) randy.scale_to_fit_height(0.6*self.get_height())
randy.stretch(0.8, 0) randy.stretch(0.8, 0)

View file

@ -382,7 +382,6 @@ class BarChart(VGroup):
def copy(self): def copy(self):
return self.deepcopy() return self.deepcopy()
### Cards ### ### Cards ###
class DeckOfCards(VGroup): class DeckOfCards(VGroup):
@ -542,7 +541,7 @@ class PlayingCard(VGroup):
return design return design
def get_face_card_design(self, value, symbol): def get_face_card_design(self, value, symbol):
from topics.characters import PiCreature from pi_creature.pi_creature import PiCreature
sub_rect = Rectangle( sub_rect = Rectangle(
stroke_color = BLACK, stroke_color = BLACK,
fill_opacity = 0, fill_opacity = 0,