Satisfying finicky spacing desires

This commit is contained in:
Grant Sanderson 2018-02-26 11:41:44 -08:00
parent 2ff564af39
commit 1ba56c3bba

View file

@ -95,10 +95,6 @@ class AngleUpdater(ContinualAnimation):
self.angle_arc.add_tip(tip_length = ARC_TIP_LENGTH,
at_start = True, at_end = True)
class LightIndicator(Mobject):
CONFIG = {
"radius": 0.5,
@ -148,9 +144,6 @@ class LightIndicator(Mobject):
print "Indicator cannot update, reason: no light source found"
self.set_intensity(self.measured_intensity())
class UpdateLightIndicator(AnimationGroup):
def __init__(self, indicator, intensity, **kwargs):
@ -165,13 +158,11 @@ class UpdateLightIndicator(AnimationGroup):
AnimationGroup.__init__(self, changing_decimal, change_opacity, **kwargs)
self.mobject = indicator
class ContinualLightIndicatorUpdate(ContinualAnimation):
def update_mobject(self,dt):
self.mobject.continual_update()
def copy_func(f):
"""Based on http://stackoverflow.com/a/6528148/190597 (Glenn Maynard)"""
g = types.FunctionType(f.func_code, f.func_globals, name=f.func_name,
@ -221,21 +212,7 @@ class ScaleLightSources(Transform):
Transform.__init__(self,light_sources_mob,ls_target,**kwargs)
###
class IntroScene(PiCreatureScene):
@ -472,25 +449,6 @@ class IntroScene(PiCreatureScene):
self.wait()
class FirstLighthouseScene(PiCreatureScene):
def construct(self):
@ -647,28 +605,6 @@ class FirstLighthouseScene(PiCreatureScene):
self.wait()
class SingleLighthouseScene(PiCreatureScene):
def construct(self):
@ -858,24 +794,6 @@ class SingleLighthouseScene(PiCreatureScene):
self.wait()
class EarthScene(Scene):
def construct(self):
@ -973,30 +891,6 @@ class EarthScene(Scene):
MoveToTarget(morty, path_arc = 70*DEGREES, run_time = 3),
)
class ScreenShapingScene(ThreeDScene):
@ -1442,9 +1336,6 @@ class ScreenShapingScene(ThreeDScene):
FadeIn(reading39),
)
class IndicatorScalingScene(Scene):
def construct(self):
@ -1482,11 +1373,6 @@ class IndicatorScalingScene(Scene):
self.play(FadeIn(reading3))
self.wait()
class BackToEulerSumScene(PiCreatureScene):
@ -1705,10 +1591,6 @@ class BackToEulerSumScene(PiCreatureScene):
self.wait()
class TwoLightSourcesScene(PiCreatureScene):
def construct(self):
@ -1886,8 +1768,6 @@ class TwoLightSourcesScene(PiCreatureScene):
Write(theorem_name),
)
class IPTScene1(PiCreatureScene):
def construct(self):
@ -2078,8 +1958,6 @@ class IPTScene1(PiCreatureScene):
Transform(screen2, screen2pp),
)
class IPTScene2(Scene):
def construct(self):
@ -2131,7 +2009,6 @@ class IPTScene2(Scene):
text.next_to(box,UP)
self.play(ShowCreation(box),Write(text))
class PondScene(Scene):
def construct(self):
@ -2606,8 +2483,6 @@ class PondScene(Scene):
)
self.play(FadeIn(self.number_line))
class LabeledArc(Arc):
CONFIG = {
"length" : 1
@ -2627,9 +2502,6 @@ class LabeledArc(Arc):
label.move_to(label_pos)
self.add(label)
class ArcHighlightOverlayScene(Scene):
def construct(self):
@ -2686,3 +2558,32 @@ class ArcHighlightOverlayScene(Scene):