LaggedStart -> OldLaggedStart

This commit is contained in:
Grant Sanderson
2019-02-08 14:49:38 -08:00
parent 22f4a83ba8
commit 13b701ba1b
63 changed files with 901 additions and 901 deletions

View File

@ -55,7 +55,7 @@ class IntroducePokerHand(PiCreatureScene, SampleSpaceScene):
card.generate_target()
card.scale(0.01)
card.move_to(deck[-1], UP+RIGHT)
self.play(LaggedStart(MoveToTarget, group, lag_ratio = 0.8))
self.play(OldLaggedStart(MoveToTarget, group, lag_ratio = 0.8))
self.wait()
self.wait()
@ -90,13 +90,13 @@ class IntroducePokerHand(PiCreatureScene, SampleSpaceScene):
straight_cards.next_to(community_cards, UP, aligned_edge = LEFT)
you.hand.target.shift(MED_SMALL_BUFF*UP)
self.play(LaggedStart(
self.play(OldLaggedStart(
MoveToTarget,
selected_community_cards,
run_time = 1.5
))
self.play(MoveToTarget(you.hand))
self.play(LaggedStart(
self.play(OldLaggedStart(
ApplyMethod,
straight_cards,
lambda m : (m.set_color, YELLOW),
@ -147,7 +147,7 @@ class IntroducePokerHand(PiCreatureScene, SampleSpaceScene):
self.play(heart_cards.shift, heart_cards.get_height()*UP)
self.play(you.change_mode, "hesitant")
self.play(MoveToTarget(her.hand))
self.play(LaggedStart(DrawBorderThenFill, heart_qs))
self.play(OldLaggedStart(DrawBorderThenFill, heart_qs))
self.play(
her.change, "happy",
her.glasses.restore,
@ -210,7 +210,7 @@ class IntroducePokerHand(PiCreatureScene, SampleSpaceScene):
color = BLUE, buff = SMALL_BUFF
)
self.play(LaggedStart(FadeIn, equation))
self.play(OldLaggedStart(FadeIn, equation))
self.wait(2)
self.play(
FadeIn(num_hearts),
@ -305,7 +305,7 @@ class IntroducePokerHand(PiCreatureScene, SampleSpaceScene):
dollar.move_to(her.get_boundary_point(RIGHT))
dollar.set_fill(opacity = 0)
self.play(LaggedStart(
self.play(OldLaggedStart(
ApplyMethod,
money,
lambda m : (m.restore,),
@ -480,7 +480,7 @@ class UpdatePokerPrior(SampleSpaceScene):
braces_and_labels = sample_space.get_side_braces_and_labels(labels)
self.play(
LaggedStart(FadeIn, sample_space),
OldLaggedStart(FadeIn, sample_space),
Write(braces_and_labels)
)
self.wait()
@ -748,7 +748,7 @@ class UpdatePokerPrior(SampleSpaceScene):
group.arrange(DOWN)
group.to_corner(UP+RIGHT)
self.play(LaggedStart(FadeIn, posterior_tex))
self.play(OldLaggedStart(FadeIn, posterior_tex))
self.play(Write(arrow))
self.play(MoveToTarget(rects[0]))
self.wait()
@ -859,7 +859,7 @@ class UpdatePokerPrior(SampleSpaceScene):
self.wait(2)
self.play(*list(map(FadeIn, [her, her.glasses])))
self.play(LaggedStart(FadeIn, risk_averse_words))
self.play(OldLaggedStart(FadeIn, risk_averse_words))
self.play(her.change_mode, "sad", Animation(her.glasses))
self.wait()
self.play(ShowCreation(arrows))
@ -1090,7 +1090,7 @@ class BayesRuleInMemory(Scene):
self.add(randy)
self.play(
LaggedStart(FadeIn, rule),
OldLaggedStart(FadeIn, rule),
randy.change, "erm", rule
)
self.play(Blink(randy))
@ -1497,7 +1497,7 @@ class GeneralizeBayesRule(SampleSpaceScene):
post_rects = self.post_rects
self.play(non_I_rects.fade, 0.8)
self.play(LaggedStart(
self.play(OldLaggedStart(
ApplyMethod,
prior_rects,
lambda m : (m.set_color, YELLOW),
@ -1608,13 +1608,13 @@ class MusicExample(SampleSpaceScene, PiCreatureScene):
word.scale(0.6)
word.move_to(part)
self.play(LaggedStart(FadeIn, sample_space, run_time = 1))
self.play(OldLaggedStart(FadeIn, sample_space, run_time = 1))
self.play(*list(map(GrowFromCenter, braces)))
for label in labels:
self.play(Write(label, run_time = 2))
self.wait()
for word, mode in zip(words, ["maybe", "soulful_musician"]):
self.play(LaggedStart(FadeIn, word, run_time = 1))
self.play(OldLaggedStart(FadeIn, word, run_time = 1))
self.change_pi_creature_with_guitar(mode)
self.wait()
self.wait()
@ -1644,7 +1644,7 @@ class MusicExample(SampleSpaceScene, PiCreatureScene):
Animation(friends)
)
self.play_notes(randy.guitar)
self.play(LaggedStart(
self.play(OldLaggedStart(
ApplyMethod, friends,
lambda pi : (pi.change, "hooray"),
run_time = 2,
@ -1678,7 +1678,7 @@ class MusicExample(SampleSpaceScene, PiCreatureScene):
VGroup(bubble, content).next_to(friends, LEFT, SMALL_BUFF)
VGroup(bubble, content).to_edge(UP, SMALL_BUFF)
self.play(LaggedStart(
self.play(OldLaggedStart(
ApplyMethod, friends,
lambda pi : (pi.change_mode, "conniving")
))
@ -1687,7 +1687,7 @@ class MusicExample(SampleSpaceScene, PiCreatureScene):
ShowCreation(bubble),
Write(bubble.content, run_time = 1),
ApplyMethod(friends[0].change_mode, "hooray"),
LaggedStart(
OldLaggedStart(
ApplyMethod, VGroup(*friends[1:]),
lambda pi : (pi.change_mode, "happy")
),
@ -1704,7 +1704,7 @@ class MusicExample(SampleSpaceScene, PiCreatureScene):
pi2.target.change("hesitant", pi1.eyes)
pi3.target.change("pondering", pi2.eyes)
self.play(LaggedStart(
self.play(OldLaggedStart(
MoveToTarget, friends
))
self.change_pi_creature_with_guitar("concerned_musician")
@ -1751,7 +1751,7 @@ class MusicExample(SampleSpaceScene, PiCreatureScene):
self.change_pi_creature_with_guitar(
"soulful_musician",
LaggedStart(
OldLaggedStart(
ApplyMethod, friends,
lambda pi : (pi.change, "happy"),
run_time = 1,
@ -1770,7 +1770,7 @@ class MusicExample(SampleSpaceScene, PiCreatureScene):
negative_space.save_state()
self.play(negative_space.fade, 0.8)
self.play(LaggedStart(
self.play(OldLaggedStart(
ApplyMethod, positive_space,
lambda m : (m.set_color, YELLOW),
rate_func = there_and_back,
@ -1909,7 +1909,7 @@ class MusicExample(SampleSpaceScene, PiCreatureScene):
self.play(ShowCreation(post_rect))
self.wait(2)
for mode, time in ("shruggie", 2), ("hesitant", 0):
self.play(LaggedStart(
self.play(OldLaggedStart(
ApplyMethod, friends,
lambda pi : (pi.change, mode),
run_time = 2,
@ -1961,7 +1961,7 @@ class MusicExample(SampleSpaceScene, PiCreatureScene):
brace = braces[0]
self.play(old_prior_rects.fade, 0.8)
self.play(LaggedStart(
self.play(OldLaggedStart(
ApplyMethod, friends,
lambda pi : (pi.change, "pondering", post_rects),
run_time = 1
@ -2058,7 +2058,7 @@ class MusicExample(SampleSpaceScene, PiCreatureScene):
notes.get_center() - \
sine_wave.point_from_proportion(0)
)
self.play(LaggedStart(
self.play(OldLaggedStart(
MoveAlongPath, notes,
lambda n : (n, sine_wave),
path_arc = np.pi/2,