A community-maintained Python framework for creating mathematical animations.
DEFAULT_CONFIG -> CONFIG
Grant Sandersona06848a2191f
diff --git a/animation/animation.py b/animation/animation.pyindex 6658f658f..068f1497a 100644--- a/animation/animation.py+++ b/animation/animation.py@@ -12,7 +12,7 @@ from helpers import *from mobject import Mobjectclass Animation(object):- DEFAULT_CONFIG = {+ CONFIG = {"run_time" : DEFAULT_ANIMATION_RUN_TIME,"rate_func" : smooth,"name" : None,diff --git a/animation/playground.py b/animation/playground.pyindex 78a42974d..34e10a39a 100644--- a/animation/playground.py+++ b/animation/playground.py@@ -9,7 +9,7 @@ from topics.geometry import Linefrom helpers import *class Vibrate(Animation):- DEFAULT_CONFIG = {+ CONFIG = {"spatial_period" : 6,"temporal_period" : 1,"overtones" : 4,@@ -48,7 +48,7 @@ class Vibrate(Animation):class TurnInsideOut(Transform):- DEFAULT_CONFIG = {+ CONFIG = {"path_func" : path_along_arc(np.pi/2)}def __init__(self, mobject, **kwargs):diff --git a/animation/simple_animations.py b/animation/simple_animations.pyindex 01d946371..15604dbbc 100644--- a/animation/simple_animations.py+++ b/animation/simple_animations.py@@ -8,7 +8,7 @@ from animation import Animationclass Rotating(Animation):- DEFAULT_CONFIG = {+ CONFIG = {"axes" : [RIGHT, UP],"axis" : None,"radians" : 2*np.pi,@@ -57,7 +57,7 @@ class ShowCreation(ShowPartial):return (0, alpha)class ShowPassingFlash(ShowPartial):- DEFAULT_CONFIG = {+ CONFIG = {"time_width" : 0.1}def get_bounds(self, alpha):@@ -71,7 +71,7 @@ class ShowPassingFlash(ShowPartial):class Flash(Animation):- DEFAULT_CONFIG = {+ CONFIG = {"color" : "white","slow_factor" : 0.01,"run_time" : 0.1,@@ -111,7 +111,7 @@ class Homotopy(Animation):])class PhaseFlow(Animation):- DEFAULT_CONFIG = {+ CONFIG = {"virtual_time" : 1}def __init__(self, function, mobject, **kwargs):@@ -154,7 +154,7 @@ class DelayByOrder(Animation):Warning: This will not work on all animation types."""- DEFAULT_CONFIG = {+ CONFIG = {"max_power" : 5}def __init__(self, animation, **kwargs):diff --git a/animation/transform.py b/animation/transform.pyindex 9ab8351de..361a90d75 100644--- a/animation/transform.py+++ b/animation/transform.py@@ -11,7 +11,7 @@ from simple_animations import DelayByOrderfrom mobject import Mobject, Pointclass Transform(Animation):- DEFAULT_CONFIG = {+ CONFIG = {"path_func" : straight_path,"should_black_out_extra_points" : False}@@ -75,12 +75,12 @@ class Transform(Animation):)class ClockwiseTransform(Transform):- DEFAULT_CONFIG = {+ CONFIG = {"path_func" : clockwise_path()}class CounterclockwiseTransform(Transform):- DEFAULT_CONFIG = {+ CONFIG = {"path_func" : counterclockwise_path()}@@ -93,7 +93,7 @@ class GrowFromCenter(Transform):Transform.__init__(self, mobject, target, **kwargs)class SpinInFromNothing(GrowFromCenter):- DEFAULT_CONFIG = {+ CONFIG = {"path_func" : counterclockwise_path()}@@ -143,7 +143,7 @@ class ShimmerIn(DelayByOrder):class Rotate(ApplyMethod):- DEFAULT_CONFIG = {+ CONFIG = {"in_place" : False,}def __init__(self, mobject, angle = np.pi, axis = OUT, **kwargs):@@ -157,7 +157,7 @@ class Rotate(ApplyMethod):class ApplyPointwiseFunction(ApplyMethod):- DEFAULT_CONFIG = {+ CONFIG = {"run_time" : DEFAULT_POINTWISE_FUNCTION_RUN_TIME}def __init__(self, function, mobject, **kwargs):@@ -206,7 +206,7 @@ class ApplyMatrix(Animation):class TransformAnimations(Transform):- DEFAULT_CONFIG = {+ CONFIG = {"rate_func" : squish_rate_func(smooth)}def __init__(self, start_anim, end_anim, **kwargs):diff --git a/brachistochrone/curves.py b/brachistochrone/curves.pyindex 85dfec8d6..5a307da42 100644--- a/brachistochrone/curves.py+++ b/brachistochrone/curves.py@@ -32,7 +32,7 @@ RANDY_SCALE_VAL = 0.3class Cycloid(ParametricFunction):- DEFAULT_CONFIG = {+ CONFIG = {"point_a" : 6*LEFT+3*UP,"radius" : 2,"end_theta" : 3*np.pi/2,@@ -52,7 +52,7 @@ class Cycloid(ParametricFunction):])class LoopTheLoop(ParametricFunction):- DEFAULT_CONFIG = {+ CONFIG = {"color" : YELLOW_D,"density" : 20*DEFAULT_POINT_DENSITY_1D}@@ -71,7 +71,7 @@ class LoopTheLoop(ParametricFunction):class SlideWordDownCycloid(Animation):- DEFAULT_CONFIG = {+ CONFIG = {"rate_func" : None,"run_time" : 8}@@ -149,7 +149,7 @@ class BrachistochroneWordSliding(Scene):class PathSlidingScene(Scene):- DEFAULT_CONFIG = {+ CONFIG = {"gravity" : 3,"delta_t" : 0.05}diff --git a/brachistochrone/light.py b/brachistochrone/light.pyindex 7ba181ed9..8c077a157 100644--- a/brachistochrone/light.py+++ b/brachistochrone/light.py@@ -30,7 +30,7 @@ from scene import Scenefrom brachistochrone.curves import Cycloidclass Lens(Arc):- DEFAULT_CONFIG = {+ CONFIG = {"radius" : 2,"angle" : np.pi/2,"color" : BLUE_B,@@ -86,7 +86,7 @@ class SimplePhoton(PhotonScene):class MultipathPhotonScene(PhotonScene):- DEFAULT_CONFIG = {+ CONFIG = {"num_paths" : 5}def run_along_paths(self):@@ -307,7 +307,7 @@ class ShowMultiplePathsInGlass(ShowMultiplePathsScene):class MultilayeredGlass(PhotonScene):- DEFAULT_CONFIG = {+ CONFIG = {"num_discrete_layers" : 5,"num_variables" : 3,"top_color" : BLUE_E,diff --git a/camera.py b/camera.pyindex ff37a5ff3..a6e0a59e1 100644--- a/camera.py+++ b/camera.py@@ -10,7 +10,7 @@ import progressbarfrom helpers import *class Camera(object):- DEFAULT_CONFIG = {+ CONFIG = {#background of a different shape will overwrite this"pixel_shape" : (DEFAULT_HEIGHT, DEFAULT_WIDTH),#this will be resized to match pixel_shape@@ -177,7 +177,7 @@ class MovingCamera(Camera):Stays in line with the height, width and positionof a given mobject"""- DEFAULT_CONFIG = {+ CONFIG = {"aligned_dimension" : "width" #or height}def __init__(self, mobject, **kwargs):diff --git a/displayer.py b/displayer.pyindex ac5c94e8a..5a45875b7 100644--- a/displayer.py+++ b/displayer.py@@ -10,7 +10,7 @@ import progressbarfrom helpers import *class Camera(object):- DEFAULT_CONFIG = {+ CONFIG = {"pixel_width" : DEFAULT_WIDTH,"pixel_height" : DEFAULT_HEIGHT,"space_height" : SPACE_HEIGHT,diff --git a/fluid_flow.py b/fluid_flow.pyindex a948fc6ef..90d1e0ebe 100644--- a/fluid_flow.py+++ b/fluid_flow.py@@ -15,7 +15,7 @@ from helpers import *class FluidFlow(Scene):- DEFAULT_CONFIG = {+ CONFIG = {"arrow_spacing" : 1,"dot_spacing" : 0.5,"dot_color" : BLUE_C,@@ -114,7 +114,7 @@ class FluidFlow(Scene):class NegativeDivergenceExamlpe(FluidFlow):- DEFAULT_CONFIG = {+ CONFIG = {"points_width" : 2*SPACE_WIDTH,"points_height" : 2*SPACE_HEIGHT,}@@ -177,7 +177,7 @@ class QuadraticField(FluidFlow):class IncompressibleFluid(FluidFlow):- DEFAULT_CONFIG = {+ CONFIG = {"points_width" : 2*SPACE_WIDTH,"points_height" : 1.4*SPACE_HEIGHT}@@ -197,7 +197,7 @@ class IncompressibleFluid(FluidFlow):class ConstantInwardFlow(FluidFlow):- DEFAULT_CONFIG = {+ CONFIG = {"points_height" : 3*SPACE_HEIGHT,"points_width" : 3*SPACE_WIDTH,}@@ -240,7 +240,7 @@ class ConstantOutwardFlow(FluidFlow):class ConstantPositiveCurl(FluidFlow):- DEFAULT_CONFIG = {+ CONFIG = {"points_height" : SPACE_WIDTH,}def construct(self):@@ -272,7 +272,7 @@ class ComplexCurlExample(FluidFlow):)class SingleSwirl(FluidFlow):- DEFAULT_CONFIG = {+ CONFIG = {"points_height" : SPACE_WIDTH,}def construct(self):@@ -287,7 +287,7 @@ class SingleSwirl(FluidFlow):class CurlArticleExample(FluidFlow):- DEFAULT_CONFIG = {+ CONFIG = {"points_height" : 3*SPACE_HEIGHT,"points_width" : 3*SPACE_WIDTH}@@ -309,7 +309,7 @@ class CurlArticleExample(FluidFlow):class FourSwirlsWithoutCircles(FluidFlow):- DEFAULT_CONFIG = {+ CONFIG = {"points_height" : SPACE_WIDTH,}def construct(self):diff --git a/generate_logo.py b/generate_logo.pyindex 0797b1e65..f897f6a52 100644--- a/generate_logo.py+++ b/generate_logo.py@@ -11,7 +11,7 @@ from helpers import *class LogoGeneration(Scene):- DEFAULT_CONFIG = {+ CONFIG = {"radius" : 1.5,"inner_radius_ratio" : 0.55,"circle_density" : 100,diff --git a/mobject/image_mobject.py b/mobject/image_mobject.pyindex cbee40201..988489509 100644--- a/mobject/image_mobject.py+++ b/mobject/image_mobject.py@@ -12,7 +12,7 @@ class ImageMobject(Mobject):"""Automatically filters out black pixels"""- DEFAULT_CONFIG = {+ CONFIG = {"filter_color" : "black","invert" : True,"use_cache" : True,diff --git a/mobject/mobject.py b/mobject/mobject.pyindex bb519af55..9e22622b2 100644--- a/mobject/mobject.py+++ b/mobject/mobject.py@@ -15,7 +15,7 @@ class Mobject(object):Mathematical Object"""#Number of numbers used to describe a point (3 for pos, 3 for normal vector)- DEFAULT_CONFIG = {+ CONFIG = {"color" : WHITE,"point_thickness" : DEFAULT_POINT_THICKNESS,"name" : None,@@ -533,7 +533,7 @@ class Mobject(object):class Point(Mobject):- DEFAULT_CONFIG = {+ CONFIG = {"color" : BLACK,}def __init__(self, location = ORIGIN, **kwargs):@@ -545,7 +545,7 @@ class Point(Mobject):#TODO, Make the two implementations bellow non-redundantclass Mobject1D(Mobject):- DEFAULT_CONFIG = {+ CONFIG = {"density" : DEFAULT_POINT_DENSITY_1D,}def __init__(self, **kwargs):@@ -568,7 +568,7 @@ class Mobject1D(Mobject):self.add_points(points, color = color)class Mobject2D(Mobject):- DEFAULT_CONFIG = {+ CONFIG = {"density" : DEFAULT_POINT_DENSITY_2D,}def __init__(self, **kwargs):diff --git a/mobject/region.py b/mobject/region.pyindex 89769fca5..7c233180f 100644--- a/mobject/region.py+++ b/mobject/region.py@@ -10,7 +10,7 @@ from helpers import *#TODO, this whole class should be something vectorized.class Region(Mobject):- DEFAULT_CONFIG = {+ CONFIG = {"display_mode" : "region"}def __init__(self, condition = (lambda x, y : True), **kwargs):diff --git a/mobject/tex_mobject.py b/mobject/tex_mobject.pyindex 662e006bc..8fc1062d9 100644--- a/mobject/tex_mobject.py+++ b/mobject/tex_mobject.py@@ -5,7 +5,7 @@ from helpers import *#TODO, Cleanup and refactor this file.class TexMobject(Mobject):- DEFAULT_CONFIG = {+ CONFIG = {"template_tex_file" : TEMPLATE_TEX_FILE,"color" : WHITE,"point_thickness" : 1,@@ -39,14 +39,14 @@ class TexMobject(Mobject):class TextMobject(TexMobject):- DEFAULT_CONFIG = {+ CONFIG = {"template_tex_file" : TEMPLATE_TEXT_FILE,"size" : "\\Large", #TODO, auto-adjust?}class Brace(TexMobject):- DEFAULT_CONFIG = {+ CONFIG = {"buff" : 0.2,}TEX_STRING = "\\underbrace{%s}"%(14*"\\quad")diff --git a/old_projects/music_and_measure.py b/old_projects/music_and_measure.pyindex 02ee8e60a..546142f4d 100644--- a/old_projects/music_and_measure.py+++ b/old_projects/music_and_measure.py@@ -94,7 +94,7 @@ class OpenInterval(Mobject):self.shift(center_point)class Piano(ImageMobject):- DEFAULT_CONFIG = {+ CONFIG = {"point_thickness" : 1,"invert" : False,"scale_value" : 0.5@@ -127,7 +127,7 @@ class Piano(ImageMobject):class Vibrate(Animation):- DEFAULT_CONFIG = {+ CONFIG = {"num_periods" : 1,"overtones" : 4,"amplitude" : 0.5,diff --git a/scene/scene.py b/scene/scene.pyindex ec56cde9a..8ec16287b 100644--- a/scene/scene.py+++ b/scene/scene.py@@ -17,7 +17,7 @@ from tk_scene import TkSceneRootfrom mobject import Mobjectclass Scene(object):- DEFAULT_CONFIG = {+ CONFIG = {"camera" : None,"frame_duration" : DEFAULT_FRAME_DURATION,"construct_args" : [],diff --git a/topics/arithmetic.py b/topics/arithmetic.pyindex fc9153d09..25df04491 100644--- a/topics/arithmetic.py+++ b/topics/arithmetic.py@@ -84,7 +84,7 @@ class RearrangeEquation(Scene):class FlipThroughSymbols(Animation):- DEFAULT_CONFIG = {+ CONFIG = {"start_center" : ORIGIN,"end_center" : ORIGIN,}diff --git a/topics/characters.py b/topics/characters.pyindex c53095747..ff5789661 100644--- a/topics/characters.py+++ b/topics/characters.py@@ -14,7 +14,7 @@ def part_name_to_directory(name):return os.path.join(PI_CREATURE_DIR, "pi_creature_"+name) + ".png"class PiCreature(Mobject):- DEFAULT_CONFIG = {+ CONFIG = {"color" : BLUE_E}PART_NAMES = [@@ -125,7 +125,7 @@ class Randolph(PiCreature):pass #Nothing more than an alternative nameclass Mortimer(PiCreature):- DEFAULT_CONFIG = {+ CONFIG = {"color" : MAROON_E}def __init__(self, **kwargs):@@ -136,7 +136,7 @@ class Mortimer(PiCreature):class Mathematician(PiCreature):- DEFAULT_CONFIG = {+ CONFIG = {"color" : GREY,}def __init__(self, **kwargs):@@ -145,7 +145,7 @@ class Mathematician(PiCreature):class Bubble(Mobject):- DEFAULT_CONFIG = {+ CONFIG = {"direction" : LEFT,"center_point" : ORIGIN,}@@ -197,7 +197,7 @@ class Bubble(Mobject):return selfclass SpeechBubble(Bubble):- DEFAULT_CONFIG = {+ CONFIG = {"initial_width" : 6,"initial_height" : 4,}@@ -237,7 +237,7 @@ class SpeechBubble(Bubble):return self.circle.get_center()class ThoughtBubble(Bubble):- DEFAULT_CONFIG = {+ CONFIG = {"num_bulges" : 7,"initial_inner_radius" : 1.8,"initial_width" : 6,diff --git a/topics/complex_numbers.py b/topics/complex_numbers.pyindex 5ecc6a01c..f9db54d10 100644--- a/topics/complex_numbers.py+++ b/topics/complex_numbers.py@@ -10,7 +10,7 @@ def complex_string(complex_num):return filter(lambda c : c not in "()", str(complex_num))class ComplexPlane(NumberPlane):- DEFAULT_CONFIG = {+ CONFIG = {"color" : GREEN,"unit_to_spatial_width" : 1,"line_frequency" : 1,diff --git a/topics/fractals.py b/topics/fractals.pyindex fa3e015b5..2d8cb60cc 100644--- a/topics/fractals.py+++ b/topics/fractals.py@@ -15,7 +15,7 @@ def rotate(points, angle = np.pi, axis = OUT):class SpaceFillingCurve(Mobject1D):- DEFAULT_CONFIG = {+ CONFIG = {"radius" : 3,"order" : 5,"start_color" : RED,@@ -33,7 +33,7 @@ class SpaceFillingCurve(Mobject1D):class LindenmayerCurve(SpaceFillingCurve):- DEFAULT_CONFIG = {+ CONFIG = {"axiom" : "A","rule" : {},"scale_factor" : 2,@@ -74,7 +74,7 @@ class LindenmayerCurve(SpaceFillingCurve):class SelfSimilarSpaceFillingCurve(SpaceFillingCurve):- DEFAULT_CONFIG = {+ CONFIG = {"offsets" : [],#keys must awkwardly be in string form..."offset_to_rotation_axis" : {},@@ -119,7 +119,7 @@ class SelfSimilarSpaceFillingCurve(SpaceFillingCurve):class HilbertCurve(SelfSimilarSpaceFillingCurve):- DEFAULT_CONFIG = {+ CONFIG = {"offsets" : [LEFT+DOWN,LEFT+UP,@@ -134,7 +134,7 @@ class HilbertCurve(SelfSimilarSpaceFillingCurve):class HilbertCurve3D(SelfSimilarSpaceFillingCurve):- DEFAULT_CONFIG = {+ CONFIG = {"offsets" : [LEFT+DOWN+OUT,LEFT+UP+OUT,@@ -149,7 +149,7 @@ class HilbertCurve3D(SelfSimilarSpaceFillingCurve):}class PeanoCurve(SelfSimilarSpaceFillingCurve):- DEFAULT_CONFIG = {+ CONFIG = {"start_color" : PURPLE,"end_color" : TEAL,"offsets" : [@@ -175,7 +175,7 @@ class PeanoCurve(SelfSimilarSpaceFillingCurve):}class TriangleFillingCurve(SelfSimilarSpaceFillingCurve):- DEFAULT_CONFIG = {+ CONFIG = {"start_color" : MAROON,"end_color" : YELLOW,"offsets" : [@@ -193,7 +193,7 @@ class TriangleFillingCurve(SelfSimilarSpaceFillingCurve):}# class HexagonFillingCurve(SelfSimilarSpaceFillingCurve):-# DEFAULT_CONFIG = {+# CONFIG = {# "start_color" : WHITE,# "end_color" : BLUE_D,# "axis_offset_pairs" : [@@ -217,7 +217,7 @@ class TriangleFillingCurve(SelfSimilarSpaceFillingCurve):class UtahFillingCurve(SelfSimilarSpaceFillingCurve):- DEFAULT_CONFIG = {+ CONFIG = {"start_color" : WHITE,"end_color" : BLUE_D,"axis_offset_pairs" : [@@ -229,7 +229,7 @@ class UtahFillingCurve(SelfSimilarSpaceFillingCurve):class FlowSnake(LindenmayerCurve):- DEFAULT_CONFIG = {+ CONFIG = {"start_color" : YELLOW,"end_color" : GREEN,"axiom" : "A",@@ -247,7 +247,7 @@ class FlowSnake(LindenmayerCurve):self.rotate(-self.order*np.pi/9)class Sierpinski(LindenmayerCurve):- DEFAULT_CONFIG = {+ CONFIG = {"start_color" : RED,"end_color" : WHITE,"axiom" : "A",@@ -262,7 +262,7 @@ class Sierpinski(LindenmayerCurve):}class KochCurve(LindenmayerCurve):- DEFAULT_CONFIG = {+ CONFIG = {"start_color" : BLUE_D,"end_color" : WHITE,"axiom" : "A--A--A--",@@ -282,7 +282,7 @@ class KochCurve(LindenmayerCurve):class StellarCurve(LindenmayerCurve):- DEFAULT_CONFIG = {+ CONFIG = {"start_color" : RED,"end_color" : BLUE_E,"rule" : {@@ -294,7 +294,7 @@ class StellarCurve(LindenmayerCurve):}class SnakeCurve(SpaceFillingCurve):- DEFAULT_CONFIG = {+ CONFIG = {"start_color" : BLUE,"end_color" : YELLOW,}diff --git a/topics/functions.py b/topics/functions.pyindex 6e67c9f5a..72add70eb 100644--- a/topics/functions.py+++ b/topics/functions.py@@ -5,7 +5,7 @@ from mobject import Mobject, Mobject1D, Mobjectfrom helpers import *class FunctionGraph(Mobject1D):- DEFAULT_CONFIG = {+ CONFIG = {"color" : BLUE,"x_min" : -10,"x_max" : 10,@@ -27,7 +27,7 @@ class FunctionGraph(Mobject1D):class ParametricFunction(Mobject1D):- DEFAULT_CONFIG = {+ CONFIG = {"start" : 0,"end" : 1,}diff --git a/topics/geometry.py b/topics/geometry.pyindex 0d47e4243..f7c482af7 100644--- a/topics/geometry.py+++ b/topics/geometry.py@@ -3,7 +3,7 @@ from helpers import *from mobject import Mobject, Mobject1D, Pointclass Dot(Mobject1D): #Use 1D density, even though 2D- DEFAULT_CONFIG = {+ CONFIG = {"radius" : 0.05}def __init__(self, center_point = ORIGIN, **kwargs):@@ -19,7 +19,7 @@ class Dot(Mobject1D): #Use 1D density, even though 2D])class Cross(Mobject1D):- DEFAULT_CONFIG = {+ CONFIG = {"color" : YELLOW,"radius" : 0.3}@@ -37,7 +37,7 @@ class Cross(Mobject1D):class Line(Mobject1D):- DEFAULT_CONFIG = {+ CONFIG = {"buff" : 0}def __init__(self, start, end, **kwargs):@@ -83,7 +83,7 @@ class Line(Mobject1D):return rise/runclass Arrow(Line):- DEFAULT_CONFIG = {+ CONFIG = {"color" : YELLOW_C,"tip_length" : 0.25,"buff" : 0.3,@@ -147,7 +147,7 @@ class CurvedLine(Line):class Arc(Mobject1D):- DEFAULT_CONFIG = {+ CONFIG = {"radius" : 1.0,"start_angle" : 0,}@@ -167,14 +167,14 @@ class Arc(Mobject1D):])class Circle(Arc):- DEFAULT_CONFIG = {+ CONFIG = {"color" : RED,}def __init__(self, **kwargs):Arc.__init__(self, angle = 2*np.pi, **kwargs)class Polygon(Mobject1D):- DEFAULT_CONFIG = {+ CONFIG = {"color" : GREEN_D,"edge_colors" : None}@@ -200,7 +200,7 @@ class Polygon(Mobject1D):class Grid(Mobject1D):- DEFAULT_CONFIG = {+ CONFIG = {"height" : 6.0,"width" : 6.0,}@@ -224,7 +224,7 @@ class Grid(Mobject1D):)class Rectangle(Grid):- DEFAULT_CONFIG = {+ CONFIG = {"color" : YELLOW,"height" : 2.0,"width" : 4.0,@@ -242,7 +242,7 @@ class Rectangle(Grid):])class Square(Rectangle):- DEFAULT_CONFIG = {+ CONFIG = {"side_length" : 2.0,}def __init__(self, **kwargs):@@ -254,7 +254,7 @@ class Square(Rectangle):class FilledRectangle(Mobject1D):- DEFAULT_CONFIG = {+ CONFIG = {"color" : GREY,"height" : 2.0,"width" : 4.0,diff --git a/topics/number_line.py b/topics/number_line.pyindex 558bba49d..6d848278b 100644--- a/topics/number_line.py+++ b/topics/number_line.py@@ -5,7 +5,7 @@ from mobject.tex_mobject import TexMobjectfrom scene import Sceneclass NumberLine(Mobject1D):- DEFAULT_CONFIG = {+ CONFIG = {"color" : BLUE,"numerical_radius" : SPACE_WIDTH,"unit_length_to_spatial_width" : 1,@@ -101,7 +101,7 @@ class NumberLine(Mobject1D):return selfclass UnitInterval(NumberLine):- DEFAULT_CONFIG = {+ CONFIG = {"numerical_radius" : 0.5,"unit_length_to_spatial_width" : 2*(SPACE_WIDTH-1),"tick_frequency" : 0.1,@@ -112,7 +112,7 @@ class UnitInterval(NumberLine):class NumberPlane(Mobject1D):- DEFAULT_CONFIG = {+ CONFIG = {"color" : BLUE,"x_radius" : SPACE_WIDTH,"y_radius" : SPACE_HEIGHT,@@ -216,7 +216,7 @@ class NumberPlane(Mobject1D):class XYZAxes(Mobject1D):- DEFAULT_CONFIG = {+ CONFIG = {"color" : TEAL,"radius" : SPACE_HEIGHT,"tick_frequency" : 1,@@ -233,7 +233,7 @@ class XYZAxes(Mobject1D):class SpaceGrid(Mobject1D):- DEFAULT_CONFIG = {+ CONFIG = {"color" : GREEN,"radius" : SPACE_HEIGHT,"unit_to_spatial_length" : 1,diff --git a/topics/three_dimensions.py b/topics/three_dimensions.pyindex c995973b2..ecb322757 100644--- a/topics/three_dimensions.py+++ b/topics/three_dimensions.py@@ -7,7 +7,7 @@ from helpers import *class Stars(Mobject):- DEFAULT_CONFIG = {+ CONFIG = {"point_thickness" : 1,"radius" : SPACE_WIDTH,"num_points" : 1000,