A community-maintained Python framework for creating mathematical animations.
OldLaggedStart -> LaggedStartMap
Grant Sanderson993f7edee994
diff --git a/active_projects/eola2/cramer.py b/active_projects/eola2/cramer.pyindex f836b56b0..9cac54809 100644--- a/active_projects/eola2/cramer.py+++ b/active_projects/eola2/cramer.py@@ -326,13 +326,13 @@ class SetupSimpleSystemOfEquations(LinearTransformationScene):self.add(system)self.wait()- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyMethod, unknown_circles,lambda m: (m.restore,),lag_ratio=0.7))self.play(FadeOut(unknown_circles))- self.play(OldLaggedStart(ShowCreation, row_rects,+ self.play(LaggedStartMap(ShowCreation, row_rects,run_time=1, lag_ratio=0.8))self.play(FadeOut(row_rects))self.wait()@@ -818,7 +818,7 @@ class ThinkOfPuzzleAsLinearCombination(SetupSimpleSystemOfEquations):lines[i].shift(basis_vectors[1 - i].get_end() - origin)return linesupdate_dashed_lines(dashed_lines)- self.play(OldLaggedStart(ShowCreation, dashed_lines, lag_ratio=0.7))+ self.play(LaggedStartMap(ShowCreation, dashed_lines, lag_ratio=0.7))for basis in basis_vectors:self.play(MoveToTarget(basis, run_time=2),@@ -990,20 +990,20 @@ class LookAtDotProducts(SetupSimpleSystemOfEquations):MoveToTarget(corner_rect),Animation(self.equations),FadeOut(self.to_fade),- OldLaggedStart(Write, implications),+ LaggedStartMap(Write, implications),)self.remove(self.input_vect_mob)self.apply_matrix(self.matrix, added_anims=[Animation(VGroup(corner_rect, self.equations, implications)),MoveToTarget(moving_equations[0]),- OldLaggedStart(FadeIn, transformed_equations[0].parts_to_write),+ LaggedStartMap(FadeIn, transformed_equations[0].parts_to_write),FadeIn(self.column_mobs),ReplacementTransform(self.input_vect_mob.copy(), self.output_vect_mob)])self.play(MoveToTarget(moving_equations[1]),- OldLaggedStart(FadeIn, transformed_equations[1].parts_to_write),+ LaggedStartMap(FadeIn, transformed_equations[1].parts_to_write),path_arc=-30 * DEGREES,run_time=2)@@ -1011,7 +1011,7 @@ class LookAtDotProducts(SetupSimpleSystemOfEquations):# Show rectanglesself.play(- OldLaggedStart(ShowCreation, transformed_input_rects, lag_ratio=0.8),+ LaggedStartMap(ShowCreation, transformed_input_rects, lag_ratio=0.8),ShowCreation(self.output_vect_label.rect),)for tbr, column_mob in zip(transformed_basis_rects, self.column_mobs):@@ -1265,7 +1265,7 @@ class SolvingASystemWithOrthonormalMatrix(LinearTransformationScene):self.apply_matrix(matrix)self.wait()- self.play(OldLaggedStart(ShowCreation, output_dashed_lines))+ self.play(LaggedStartMap(ShowCreation, output_dashed_lines))self.play(*self.get_column_animations(system.matrix_mobject, column_mobs))self.wait()self.remove(*output_dashed_lines)@@ -1325,7 +1325,7 @@ class SolvingASystemWithOrthonormalMatrix(LinearTransformationScene):anims = [FadeIn(equation.background_rectangle),Write(equation.to_write),- OldLaggedStart(+ LaggedStartMap(MoveToTarget, equation.movers,path_arc=60 * DEGREES)@@ -1566,7 +1566,7 @@ class TransformingAreasYCoord(LinearTransformationScene):)# Fade out unneeded bits- self.play(OldLaggedStart(FadeOut, VGroup(+ self.play(LaggedStartMap(FadeOut, VGroup(unit_brace, one, coord_brace, coord_brace.label,)))@@ -1630,7 +1630,7 @@ class TransformingAreasYCoord(LinearTransformationScene):# Show many areasself.play(- OldLaggedStart(DrawBorderThenFill, blobs),+ LaggedStartMap(DrawBorderThenFill, blobs),Write(area_scale_words))self.add_transformable_mobject(blobs)@@ -1671,7 +1671,7 @@ class TransformingAreasYCoord(LinearTransformationScene):Animation(basis_vectors),Animation(input_vect_mob),Write(q_marks),- OldLaggedStart(FadeOut, blobs),+ LaggedStartMap(FadeOut, blobs),)self.transformable_mobjects.remove(blobs)self.play(@@ -2005,7 +2005,7 @@ class ThreeDCoordinatesAsVolumes(Scene):coord_column[2].set_color(BLUE)coord_column.generate_target()- self.play(OldLaggedStart(FadeIn, VGroup(+ self.play(LaggedStartMap(FadeIn, VGroup(z, equals, det_text, matrix.brackets,VGroup(*matrix.mob_matrix[:, :2].flatten()),coord_columndiff --git a/active_projects/eola2/determinant_puzzle.py b/active_projects/eola2/determinant_puzzle.pyindex d5e5d6e26..5e59c376c 100644--- a/active_projects/eola2/determinant_puzzle.py+++ b/active_projects/eola2/determinant_puzzle.py@@ -63,7 +63,7 @@ class WorkOutNumerically(Scene):equation.set_width(FRAME_WIDTH - 2 * LARGE_BUFF)equation.next_to(self.original_equation, DOWN, MED_LARGE_BUFF)- self.play(OldLaggedStart(FadeIn, equation))+ self.play(LaggedStartMap(FadeIn, equation))def compute_rhs(self):M1, M2 = self.M1_copy, self.M2_copy@@ -101,15 +101,15 @@ class WorkOutNumerically(Scene):for i, j in ((0, 0), (1, 1), (0, 1), (1, 0))])self.play(- OldLaggedStart(FadeIn, non_numbers, run_time=1),- OldLaggedStart(+ LaggedStartMap(FadeIn, non_numbers, run_time=1),+ LaggedStartMap(ReplacementTransform,matrix_numbers,lambda m: (m, next(numbers_iter)),path_arc=TAU / 6),)- self.play(OldLaggedStart(FadeIn, lines[1:], run_time=3))+ self.play(LaggedStartMap(FadeIn, lines[1:], run_time=3))def compute_lhs(self):matrix = Matrix([[-3, 7], [0, 5]])@@ -138,7 +138,7 @@ class WorkOutNumerically(Scene):ReplacementTransform(M.copy(), matrix)for M in (self.M1, self.M2)])- self.play(OldLaggedStart(FadeIn, group[1:]))+ self.play(LaggedStartMap(FadeIn, group[1:]))self.wait()diff --git a/active_projects/eop/bayes.py b/active_projects/eop/bayes.pyindex c2eb0d630..87d53a421 100644--- a/active_projects/eop/bayes.py+++ b/active_projects/eop/bayes.py@@ -55,7 +55,7 @@ class IntroducePokerHand(PiCreatureScene, SampleSpaceScene):card.generate_target()card.scale(0.01)card.move_to(deck[-1], UP+RIGHT)- self.play(OldLaggedStart(MoveToTarget, group, lag_ratio = 0.8))+ self.play(LaggedStartMap(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(OldLaggedStart(+ self.play(LaggedStartMap(MoveToTarget,selected_community_cards,run_time = 1.5))self.play(MoveToTarget(you.hand))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(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(OldLaggedStart(DrawBorderThenFill, heart_qs))+ self.play(LaggedStartMap(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(OldLaggedStart(FadeIn, equation))+ self.play(LaggedStartMap(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(OldLaggedStart(+ self.play(LaggedStartMap(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(- OldLaggedStart(FadeIn, sample_space),+ LaggedStartMap(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(OldLaggedStart(FadeIn, posterior_tex))+ self.play(LaggedStartMap(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(OldLaggedStart(FadeIn, risk_averse_words))+ self.play(LaggedStartMap(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(- OldLaggedStart(FadeIn, rule),+ LaggedStartMap(FadeIn, rule),randy.change, "erm", rule)self.play(Blink(randy))@@ -1497,7 +1497,7 @@ class GeneralizeBayesRule(SampleSpaceScene):post_rects = self.post_rectsself.play(non_I_rects.fade, 0.8)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(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(OldLaggedStart(FadeIn, sample_space, run_time = 1))+ self.play(LaggedStartMap(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(OldLaggedStart(FadeIn, word, run_time = 1))+ self.play(LaggedStartMap(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(OldLaggedStart(+ self.play(LaggedStartMap(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(OldLaggedStart(+ self.play(LaggedStartMap(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"),- OldLaggedStart(+ LaggedStartMap(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(OldLaggedStart(+ self.play(LaggedStartMap(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",- OldLaggedStart(+ LaggedStartMap(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(OldLaggedStart(+ self.play(LaggedStartMap(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(OldLaggedStart(+ self.play(LaggedStartMap(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(OldLaggedStart(+ self.play(LaggedStartMap(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(OldLaggedStart(+ self.play(LaggedStartMap(MoveAlongPath, notes,lambda n : (n, sine_wave),path_arc = np.pi/2,diff --git a/active_projects/eop/bayes_footnote.py b/active_projects/eop/bayes_footnote.pyindex 144916a53..d4d79a0d4 100644--- a/active_projects/eop/bayes_footnote.py+++ b/active_projects/eop/bayes_footnote.py@@ -263,7 +263,7 @@ class OneInOneThousandHaveDisease(Scene):self.play(randy.restore)self.play(Write(title),- OldLaggedStart(FadeIn, all_creatures, run_time = 3)+ LaggedStartMap(FadeIn, all_creatures, run_time = 3))self.wait()@@ -344,7 +344,7 @@ class TestNonDiseaseCase(TestScene):self.play(Blink(randy))self.play(ReplacementTransform(randy, all_creatures[0][0]),- OldLaggedStart(FadeIn, all_creatures, run_time = 2),+ LaggedStartMap(FadeIn, all_creatures, run_time = 2),FadeOut(result))self.play(ShowCreation(rect))@@ -434,7 +434,7 @@ class RephraseQuestion(Scene):self.add(words[0])self.play(- OldLaggedStart(FadeIn, prior),+ LaggedStartMap(FadeIn, prior),ShowCreation(prior_arrow),run_time = 1)@@ -443,7 +443,7 @@ class RephraseQuestion(Scene):self.wait()self.play(FadeIn(words[2]))self.play(- OldLaggedStart(FadeIn, posterior),+ LaggedStartMap(FadeIn, posterior),ShowCreation(posterior_arrow),run_time = 1)@@ -568,7 +568,7 @@ class ShowRestrictedSpace(Scene):healthy_words.set_color(BLUE)self.add(title)- self.play(OldLaggedStart(FadeIn, all_creatures))+ self.play(LaggedStartMap(FadeIn, all_creatures))self.play(FadeIn(sick_one_words),ShowCreation(sick_one_arrow)@@ -582,7 +582,7 @@ class ShowRestrictedSpace(Scene):self.play(sick_one.restore)self.play(Write(healthy_words),- OldLaggedStart(+ LaggedStartMap(ApplyMethod, healthy_creatures,lambda m : (m.shift, MED_SMALL_BUFF*UP),rate_func = there_and_back,@@ -641,7 +641,7 @@ class ShowRestrictedSpace(Scene):self.play(GrowFromCenter(brace),- OldLaggedStart(+ LaggedStartMap(ApplyMethod, false_positives,lambda pi : (pi.set_color, self.false_positive_color),run_time = 1@@ -954,7 +954,7 @@ class ShowTheFormula(TeacherStudentsScene):#Show initial formulalhs_copy = lhs.copy()self.play(- OldLaggedStart(+ LaggedStartMap(FadeIn, initial_formula,lag_ratio = 0.7),@@ -975,7 +975,7 @@ class ShowTheFormula(TeacherStudentsScene):FadeIn(VGroup(*number_fraction[:3])))self.wait(2)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeIn, VGroup(*number_fraction[3:]),run_time = 3,lag_ratio = 0.7@@ -1331,7 +1331,7 @@ class IntroduceTelepathyExample(StatisticsVsEmpathy):arcs.move_to(pi1.eyes, vect)arcs.set_stroke(WHITE, 4)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyMethod, arcs,lambda m : (m.restore,),lag_ratio = 0.7,@@ -1375,7 +1375,7 @@ class CompareNumbersInBothExamples(Scene):mob.shift(vect*FRAME_X_RADIUS/2)self.play(- OldLaggedStart(FadeIn, titles, lag_ratio = 0.7),+ LaggedStartMap(FadeIn, titles, lag_ratio = 0.7),*list(map(ShowCreation, [h_line, v_line])))self.wait()@@ -1437,7 +1437,7 @@ class ExampleMeasuresDisbeliefInStatistics(Introduction):self.revert_to_original_skipping_status()self.play(bayes_to_intuition.to_edge, UP)self.play(- OldLaggedStart(FadeIn, statistics_to_belief),+ LaggedStartMap(FadeIn, statistics_to_belief),cross.move_to, arrow)self.change_student_modes(diff --git a/active_projects/eop/chapter1/area_model_bayes.py b/active_projects/eop/chapter1/area_model_bayes.pyindex b740d9c6c..747bfcf73 100644--- a/active_projects/eop/chapter1/area_model_bayes.py+++ b/active_projects/eop/chapter1/area_model_bayes.py@@ -43,7 +43,7 @@ class IllustrateAreaModelBayes(Scene):label_not_A = TexMobject("P(\\text{not }A)").next_to(brace_not_A, DOWN).scale(0.7)# self.play(- # OldLaggedStart(FadeIn, VGroup(rect_A, rect_not_A))+ # LaggedStartMap(FadeIn, VGroup(rect_A, rect_not_A))# )# self.play(# ShowCreation(brace_A),@@ -75,7 +75,7 @@ class IllustrateAreaModelBayes(Scene):label_not_B = TexMobject("P(\\text{not }B)").next_to(brace_not_B, LEFT).scale(0.7)# self.play(- # OldLaggedStart(FadeIn, VGroup(rect_B, rect_not_B))+ # LaggedStartMap(FadeIn, VGroup(rect_B, rect_not_B))# )# self.play(# ShowCreation(brace_B),diff --git a/active_projects/eop/chapter1/area_model_expectation.py b/active_projects/eop/chapter1/area_model_expectation.pyindex 3eb320a37..875702bc9 100644--- a/active_projects/eop/chapter1/area_model_expectation.py+++ b/active_projects/eop/chapter1/area_model_expectation.py@@ -50,8 +50,8 @@ class IllustrateAreaModelExpectation(Scene):p_labels.add(p_label)self.play(- OldLaggedStart(FadeIn,braces),- OldLaggedStart(FadeIn, p_labels)+ LaggedStartMap(FadeIn,braces),+ LaggedStartMap(FadeIn, p_labels))diff --git a/active_projects/eop/chapter1/brick_row_scene.py b/active_projects/eop/chapter1/brick_row_scene.pyindex 61cebe0e8..05e1976a5 100644--- a/active_projects/eop/chapter1/brick_row_scene.py+++ b/active_projects/eop/chapter1/brick_row_scene.py@@ -246,7 +246,7 @@ class BrickRowScene(PiCreatureScene):coin_seqs.add(coin_seq)self.play(- OldLaggedStart(+ LaggedStartMap(Succession, coin_seqs, lambda m: (FadeIn(m, run_time = 0.1), MoveToTarget(m)),run_time = 5,lag_ratio = 0.5@@ -446,7 +446,7 @@ class BrickRowScene(PiCreatureScene):all_dice.add(dice_copy)self.play(- OldLaggedStart(FadeIn, all_dice),+ LaggedStartMap(FadeIn, all_dice),FadeOut(outcomes[1]))self.wait()@@ -709,7 +709,7 @@ class BrickRowScene(PiCreatureScene):inset = True)self.play(FadeOut(self.tallies))self.wait()- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeIn, outcomes,#rate_func = there_and_back_with_pause,run_time = 5))@@ -723,11 +723,11 @@ class BrickRowScene(PiCreatureScene):self.play(- OldLaggedStart(ShowCreation, braces),- OldLaggedStart(Write, probs)+ LaggedStartMap(ShowCreation, braces),+ LaggedStartMap(Write, probs))self.wait()- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeOut, outcomes,#rate_func = there_and_back_with_pause,run_time = 5),@@ -749,7 +749,7 @@ class BrickRowScene(PiCreatureScene):# back to three coin flips, show all 8 outcomesrun_time = 5self.play(- OldLaggedStart(FadeIn, outcomes,+ LaggedStartMap(FadeIn, outcomes,#rate_func = there_and_back_with_pause,run_time = run_time),FadeOut(self.tallies,@@ -757,7 +757,7 @@ class BrickRowScene(PiCreatureScene):)self.wait()self.play(- OldLaggedStart(FadeOut, outcomes,+ LaggedStartMap(FadeOut, outcomes,#rate_func = there_and_back_with_pause,run_time = 5),FadeIn(self.tallies,@@ -818,8 +818,8 @@ class BrickRowScene(PiCreatureScene):# for later referenceself.play(- OldLaggedStart(FadeIn, grouped_outcomes),- OldLaggedStart(FadeIn, grouped_outcomes_copy),+ LaggedStartMap(FadeIn, grouped_outcomes),+ LaggedStartMap(FadeIn, grouped_outcomes_copy),)self.wait()@@ -977,8 +977,8 @@ class ShowProbsInBrickRow3(BrickRowScene):self.wait()self.play(- OldLaggedStart(ShowCreation, braces, run_time = 3),- OldLaggedStart(Write, probs, run_time = 3)+ LaggedStartMap(ShowCreation, braces, run_time = 3),+ LaggedStartMap(Write, probs, run_time = 3))self.wait()@@ -1017,8 +1017,8 @@ class ShowOutcomesInBrickRow4(BrickRowScene):self.play(- OldLaggedStart(FadeIn, previous_outcomes),- OldLaggedStart(FadeIn, previous_outcomes_copy),+ LaggedStartMap(FadeIn, previous_outcomes),+ LaggedStartMap(FadeIn, previous_outcomes_copy),)self.wait()diff --git a/active_projects/eop/chapter1/entire_brick_wall.py b/active_projects/eop/chapter1/entire_brick_wall.pyindex 98cb0a1a3..72a7520ed 100644--- a/active_projects/eop/chapter1/entire_brick_wall.py+++ b/active_projects/eop/chapter1/entire_brick_wall.py@@ -71,7 +71,7 @@ class EntireBrickWall(BrickRowScene, MovingCameraScene):nb_tails_text.next_to(tails_counters[-1], RIGHT, buff = LARGE_BUFF)self.play(- OldLaggedStart(FadeIn, tails_counters),+ LaggedStartMap(FadeIn, tails_counters),FadeIn(nb_tails_text))diff --git a/active_projects/eop/chapter1/prob_dist_visuals.py b/active_projects/eop/chapter1/prob_dist_visuals.pyindex 38062affb..ed692c8bf 100644--- a/active_projects/eop/chapter1/prob_dist_visuals.py+++ b/active_projects/eop/chapter1/prob_dist_visuals.py@@ -198,7 +198,7 @@ class ProbabilityDistributions(PiCreatureScene):# cell.add(label)# self.play(- # OldLaggedStart(FadeIn, dice_table_grouped_cells,+ # LaggedStartMap(FadeIn, dice_table_grouped_cells,# lag_ratio = lag_ratio, run_time = run_time)# )self.play(diff --git a/active_projects/eop/chapter1/quiz_result.py b/active_projects/eop/chapter1/quiz_result.pyindex 05e457507..4e4ec7555 100644--- a/active_projects/eop/chapter1/quiz_result.py+++ b/active_projects/eop/chapter1/quiz_result.py@@ -200,7 +200,7 @@ class QuizResult(PiCreatureScene):for i in range(4)])self.wait()- self.play(Write(nb_students_label), OldLaggedStart(GrowArrow,arrows))+ self.play(Write(nb_students_label), LaggedStartMap(GrowArrow,arrows))percentage_label = TextMobject("\% of students", color = highlight_color)percentage_label.move_to(nb_students_label)diff --git a/active_projects/eop/chapter1/show_uncertainty_darts.py b/active_projects/eop/chapter1/show_uncertainty_darts.pyindex 1dbe44c78..45b1bbd70 100644--- a/active_projects/eop/chapter1/show_uncertainty_darts.py+++ b/active_projects/eop/chapter1/show_uncertainty_darts.py@@ -20,7 +20,7 @@ class ShowUncertaintyDarts(Scene):self.add(dot)self.play(- OldLaggedStart(FadeIn, dots, lag_ratio = 0.01, run_time = run_time)+ LaggedStartMap(FadeIn, dots, lag_ratio = 0.01, run_time = run_time))diff --git a/active_projects/eop/chapter1/show_uncertainty_dice.py b/active_projects/eop/chapter1/show_uncertainty_dice.pyindex edb73f5b6..0a713dd47 100644--- a/active_projects/eop/chapter1/show_uncertainty_dice.py+++ b/active_projects/eop/chapter1/show_uncertainty_dice.py@@ -59,5 +59,5 @@ class IdealizedDieHistogram(Scene):self.play(FadeIn(hist))- self.play(OldLaggedStart(FadeIn, hist.y_labels_group))+ self.play(LaggedStartMap(FadeIn, hist.y_labels_group))diff --git a/active_projects/eop/chapter1/show_uncertainty_disease.py b/active_projects/eop/chapter1/show_uncertainty_disease.pyindex c90e9baf3..19baea537 100644--- a/active_projects/eop/chapter1/show_uncertainty_disease.py+++ b/active_projects/eop/chapter1/show_uncertainty_disease.py@@ -99,6 +99,6 @@ class OneIn200HasDisease(Scene):self.wait()self.play(Write(title),- OldLaggedStart(FadeIn, all_creatures, run_time = 3)+ LaggedStartMap(FadeIn, all_creatures, run_time = 3))self.wait()diff --git a/active_projects/eop/chapter1/various_intro_visuals.py b/active_projects/eop/chapter1/various_intro_visuals.pyindex 3fd5c43dc..5bbd7ee69 100644--- a/active_projects/eop/chapter1/various_intro_visuals.py+++ b/active_projects/eop/chapter1/various_intro_visuals.py@@ -128,5 +128,5 @@ class BinaryChoices(Scene):all = all.scale(2)self.play(- OldLaggedStart(FadeIn, all)+ LaggedStartMap(FadeIn, all))diff --git a/active_projects/eop/combinations.py b/active_projects/eop/combinations.pyindex 1e9d09baa..4128e1b7c 100644--- a/active_projects/eop/combinations.py+++ b/active_projects/eop/combinations.py@@ -131,7 +131,7 @@ class ExperienceProblemSolver(PiCreatureScene):cross = Cross(lightbulb)cross.set_stroke(RED, 8)- self.play(OldLaggedStart(ShowCreation, lightbulb))+ self.play(LaggedStartMap(ShowCreation, lightbulb))self.play(ShowCreation(cross),jenny.change, "sassy", cross,@@ -264,7 +264,7 @@ class InitialFiveChooseThreeExample(Scene):mover.add(group)self.play(FadeIn(nCk_group))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(MoveToTarget, mover,run_time = 3,))@@ -301,7 +301,7 @@ class InitialFiveChooseThreeExample(Scene):for line in stack:ones = VGroup(*[mob for mob in line if "1" in mob.get_tex_string()])line.ones = ones- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyMethod, ones,lambda mob : (mob.set_color, YELLOW),rate_func = there_and_back,@@ -436,7 +436,7 @@ class SixChooseThreeExample(InitialFiveChooseThreeExample):equation.next_to(stack, RIGHT, LARGE_BUFF)self.add(equation)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeIn, stack,lag_ratio = 0.1,run_time = 10,@@ -471,7 +471,7 @@ class SixChooseThreeExample(InitialFiveChooseThreeExample):run_time = 1)self.play(- OldLaggedStart(GrowArrow, arrows),+ LaggedStartMap(GrowArrow, arrows),Write(choose_k, run_time = 1))self.wait(2)@@ -712,7 +712,7 @@ class SixChooseThreeInOtherContext(Scene):# self.play(ShowCreation(line))# self.play(Write(add_x, run_time = 1))# self.play(Transform(top_stacks, new_top_stacks))-# self.play(OldLaggedStart(+# self.play(LaggedStartMap(# Indicate, new_top_stacks.start_terms,# rate_func = there_and_back,# run_time = 1,@@ -721,7 +721,7 @@ class SixChooseThreeInOtherContext(Scene):# self.wait()# self.play(Write(add_y, run_time = 1))# self.play(Transform(stacks, new_stacks))-# self.play(OldLaggedStart(+# self.play(LaggedStartMap(# Indicate, new_stacks.start_terms,# rate_func = there_and_back,# run_time = 1,@@ -852,7 +852,7 @@ class SixChooseThreeInOtherContext(Scene):# self.play(Write(letter_set, run_time = 1))# self.play(# Write(choose_words, run_time = 1),-# OldLaggedStart(FadeIn, subset_mobs)+# LaggedStartMap(FadeIn, subset_mobs)# )# self.wait()# for subset, subset_mob in zip(letter_subsets, subset_mobs):@@ -950,7 +950,7 @@ class SixChooseThreeInOtherContext(Scene):# words.next_to(cards, LEFT)# words.shift_onto_screen()-# self.play(OldLaggedStart(DrawBorderThenFill, cards))+# self.play(LaggedStartMap(DrawBorderThenFill, cards))# self.play(Write(words))# self.wait(3)@@ -992,7 +992,7 @@ class ProbabilityOfKWomenInGroupOfFive(Scene):return lineuplast_lineup = get_lineup()- self.play(OldLaggedStart(FadeIn, last_lineup, run_time = 1))+ self.play(LaggedStartMap(FadeIn, last_lineup, run_time = 1))for x in range(self.n_examples):lineup = get_lineup()@@ -1073,7 +1073,7 @@ class ProbabilityOfKWomenInGroupOfFive(Scene):else:men.add(item)for group in men, women:- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyMethod, group,lambda m : (m.shift, MED_SMALL_BUFF*RIGHT),rate_func = there_and_back,@@ -1152,7 +1152,7 @@ class ProbabilityOfKWomenInGroupOfFive(Scene):lines.set_stroke, WHITE, 3,Write(equation, run_time = 1))- self.play(OldLaggedStart(Indicate, women, rate_func = there_and_back))+ self.play(LaggedStartMap(Indicate, women, rate_func = there_and_back))self.wait()self.equations = equations@@ -1165,7 +1165,7 @@ class ProbabilityOfKWomenInGroupOfFive(Scene):numbers = self.numbersself.play(ShowCreation(n_possibilities_rect))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(Indicate, twos,rate_func = wiggle))@@ -1231,8 +1231,8 @@ class ProbabilityOfKWomenInGroupOfFive(Scene):])circles.set_color(WHITE)- self.play(OldLaggedStart(FadeIn, question))- self.play(OldLaggedStart(ShowCreationThenDestruction, circles))+ self.play(LaggedStartMap(FadeIn, question))+ self.play(LaggedStartMap(ShowCreationThenDestruction, circles))self.wait(2)######@@ -1323,14 +1323,14 @@ class TeacherHoldingSomething(TeacherStudentsScene):# numbers.add(number)# self.add(title)-# self.play(OldLaggedStart(-# OldLaggedStart, stacks,+# self.play(LaggedStartMap(+# LaggedStartMap, stacks,# lambda s : (FadeIn, s),# run_time = 3,# ))# self.play(Write(numbers, run_time = 3))# self.wait()-# self.play(OldLaggedStart(+# self.play(LaggedStartMap(# ApplyMethod, women_groups,# lambda m : (m.set_color, PINK),# lag_ratio = 0.1,@@ -1578,7 +1578,7 @@ class BuildFiveFromFour(ProbabilityOfKWomenInGroupOfFive):new_numbers = VGroup()- self.play(OldLaggedStart(ShowCreation, rects, run_time = 1))+ self.play(LaggedStartMap(ShowCreation, rects, run_time = 1))for i, top_stack in enumerate(top_stacks[:-1]):bottom_stack = bottom_stacks[i+1]top_number = top_stacks.numbers[i]@@ -1848,7 +1848,7 @@ class IntroducePascalsTriangle(Scene):))self.play(Blink(morty),- OldLaggedStart(+ LaggedStartMap(Indicate, numbers,rate_func = wiggle,color = PINK,@@ -2197,10 +2197,10 @@ class ChooseThreeFromFive(InitialFiveChooseThreeExample, PiCreatureScene):self.play(Write(braces),- OldLaggedStart(FadeIn, people),+ LaggedStartMap(FadeIn, people),VGroup(self.stack, self.equation).to_edge, RIGHT, LARGE_BUFF)- self.play(OldLaggedStart(FadeIn, names))+ self.play(LaggedStartMap(FadeIn, names))self.set_variables_as_attrs(names, braces)@@ -2226,7 +2226,7 @@ class ChooseThreeFromFive(InitialFiveChooseThreeExample, PiCreatureScene):if hasattr(self, "stack"):movers.target.align_to(self.stack, UP)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(MoveToTarget, movers,lag_ratio = 0.2,run_time = 4,@@ -2264,7 +2264,7 @@ class ChooseThreeFromFive(InitialFiveChooseThreeExample, PiCreatureScene):self.play(ShowCreation(line_rect))self.play(MoveToTarget(line))self.play(- OldLaggedStart(ShowCreation, people_rects),+ LaggedStartMap(ShowCreation, people_rects),MoveToTarget(people),MoveToTarget(names),)@@ -2351,16 +2351,16 @@ class ChooseThreeFromFive(InitialFiveChooseThreeExample, PiCreatureScene):q_marks.set_color(YELLOW)self.play(- OldLaggedStart(+ LaggedStartMap(ShowCreationThenDestruction, odm_words_outline,lag_ratio = 0.2,run_time = 1,),- OldLaggedStart(+ LaggedStartMap(ApplyMethod, self.people,lambda pi : (pi.change, "confused", odm_words,)),- OldLaggedStart(FadeIn, q_marks),+ LaggedStartMap(FadeIn, q_marks),)self.play(line.next_to, odm_words, UP)for x in range(6):@@ -2407,13 +2407,13 @@ class ChooseThreeFromFive(InitialFiveChooseThreeExample, PiCreatureScene):all_ones.add(ones)self.play(- OldLaggedStart(+ LaggedStartMap(FadeIn, all_ones,lag_ratio = 0.2,run_time = 3,rate_func = there_and_back),- OldLaggedStart(+ LaggedStartMap(ApplyMethod, self.people,lambda pi : (pi.change, "happy", ones),)@@ -2742,7 +2742,7 @@ class HowToComputeNChooseK(ChooseThreeFromFive):for name, line, count, arrow in zip(chosen_names, lines, choice_counts, arrows):self.play(FadeIn(count),- OldLaggedStart(+ LaggedStartMap(FadeIn, name_rects,rate_func = there_and_back,remover = True,@@ -2908,7 +2908,7 @@ class HowToComputeNChooseK(ChooseThreeFromFive):self.play(Write(VGroup(*rhs[:-1])),- OldLaggedStart(+ LaggedStartMap(ApplyMethod, all_groups,lambda g : (g.restore,),rate_func = lambda t : smooth(1-t),@@ -2918,7 +2918,7 @@ class HowToComputeNChooseK(ChooseThreeFromFive):)self.wait()self.play(- OldLaggedStart(FadeIn, rects),+ LaggedStartMap(FadeIn, rects),Write(rhs[-1]))self.wait()@@ -3081,13 +3081,13 @@ class NineChooseFourExample(HowToComputeNChooseK):self.play(Write(braces),- OldLaggedStart(FadeIn, people, run_time = 1),+ LaggedStartMap(FadeIn, people, run_time = 1),FadeIn(n_items),)self.wait()self.play(FadeIn(choose_k),- OldLaggedStart(+ LaggedStartMap(ApplyMethod, chosen_subset,lambda m : (m.shift, MED_LARGE_BUFF*DOWN))@@ -3102,8 +3102,8 @@ class NineChooseFourExample(HowToComputeNChooseK):def count_how_to_choose_k(self):lines, place_words = self.get_lines_and_place_words()self.play(- OldLaggedStart(FadeIn, lines),- OldLaggedStart(FadeIn, place_words),+ LaggedStartMap(FadeIn, lines),+ LaggedStartMap(FadeIn, place_words),run_time = 1)self.count_possibilities()@@ -3192,9 +3192,9 @@ class WeirdKindOfCancelation(TeacherStudentsScene):RemovePiCreatureBubble(self.teacher, target_mode = "raise_right_hand"),- OldLaggedStart(FadeIn, fraction, run_time = 1),+ LaggedStartMap(FadeIn, fraction, run_time = 1),FadeIn(braces),- OldLaggedStart(FadeIn, names)+ LaggedStartMap(FadeIn, names))self.change_student_modes(*["pondering"]*3,@@ -3215,7 +3215,7 @@ class WeirdKindOfCancelation(TeacherStudentsScene):permutations = list(it.permutations(list(range(3))))[1:]self.shuffle(chosen_names, permutations[:2])- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ShowCreationThenDestruction,VGroup(*list(map(SurroundingRectangle, bottom_numbers[::2])))))@@ -3322,8 +3322,8 @@ class SumsToPowerOf2(Scene):number.next_to(stack, UP)self.play(- OldLaggedStart(FadeIn, stacks),- OldLaggedStart(FadeIn, numbers),+ LaggedStartMap(FadeIn, stacks),+ LaggedStartMap(FadeIn, numbers),)self.wait()@@ -3429,11 +3429,11 @@ class SumsToPowerOf2(Scene):rhs.next_to(sum_group, RIGHT)self.play(- OldLaggedStart(FadeOut, self.stacks),- OldLaggedStart(FadeOut, self.numbers),- OldLaggedStart(FadeIn, sum_group),+ LaggedStartMap(FadeOut, self.stacks),+ LaggedStartMap(FadeOut, self.numbers),+ LaggedStartMap(FadeIn, sum_group),)- self.play(OldLaggedStart(FadeIn, rhs))+ self.play(LaggedStartMap(FadeIn, rhs))self.wait(2)####@@ -3489,7 +3489,7 @@ class AskWhyTheyAreCalledBinomial(TeacherStudentsScene):self.student_says("Why are they called \\\\ ``binomial coefficients''?")- self.play(OldLaggedStart(FadeIn, pascals))+ self.play(LaggedStartMap(FadeIn, pascals))self.wait()self.play(FadeIn(example_binomials[0]),@@ -3505,7 +3505,7 @@ class AskWhyTheyAreCalledBinomial(TeacherStudentsScene):#Name themnself.play(Write(binomial_word),- OldLaggedStart(GrowArrow, arrows)+ LaggedStartMap(GrowArrow, arrows))self.change_student_modes(*["pondering"]*3)self.play(Write(two_variables))diff --git a/active_projects/eop/independence.py b/active_projects/eop/independence.pyindex 6c7294dff..a8dbda2c9 100644--- a/active_projects/eop/independence.py+++ b/active_projects/eop/independence.py@@ -143,7 +143,7 @@ class DangerInProbability(Scene):self.play(Write(warning, run_time = 1))self.play(warning.next_to, probability, UP, LARGE_BUFF,- OldLaggedStart(FadeIn, probability)+ LaggedStartMap(FadeIn, probability))self.wait()@@ -353,7 +353,7 @@ class IntroduceBinomial(Scene):chart.to_edge(LEFT)self.bar_chart = chart- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeIn, VGroup(*it.chain(*chart)),run_time = 2))@@ -499,7 +499,7 @@ class IntroduceQuiz(PiCreatureScene):group.to_corner(UP+LEFT)self.play(- OldLaggedStart(FadeIn, probabilities, run_time = 3),+ LaggedStartMap(FadeIn, probabilities, run_time = 3),self.quiz.set_height, 0.7*self.randy.get_height(),self.quiz.next_to, self.randy, RIGHT,self.randy.change, "confused", probabilities@@ -523,7 +523,7 @@ class IntroduceQuiz(PiCreatureScene):short_p.next_to(bar, UP)self.play(- OldLaggedStart(Write, VGroup(+ LaggedStartMap(Write, VGroup(*[m for m in chart if m is not chart.bars])),)@@ -693,7 +693,7 @@ class AssociatePatternsWithScores(BreakDownQuestionPatterns):ReplacementTransform(score_group.copy(), score_group.organized),- OldLaggedStart(FadeIn, score, run_time = 1)+ LaggedStartMap(FadeIn, score, run_time = 1))self.play(score_group.restore)self.wait()@@ -725,7 +725,7 @@ class AssociatePatternsWithScores(BreakDownQuestionPatterns):)self.play(self.randy.change, "pondering",- OldLaggedStart(FadeIn, triangle, run_time = 4),+ LaggedStartMap(FadeIn, triangle, run_time = 4),)self.play(row.set_color, YELLOW)self.wait(4)@@ -753,7 +753,7 @@ class BeforeCounting(TeacherStudentsScene):self.play(Write(prob))self.play(GrowFromCenter(brace),- OldLaggedStart(FadeIn, q_marks)+ LaggedStartMap(FadeIn, q_marks))self.wait(2)@@ -806,7 +806,7 @@ class TemptingButWrongCalculation(BreakDownQuestionPatterns):self.play(Write(lhs),ShowCreation(slot_group.lines),- OldLaggedStart(FadeIn, slot_group.content, run_time = 3),+ LaggedStartMap(FadeIn, slot_group.content, run_time = 3),self.randy.change, "pondering")self.wait(2)@@ -886,7 +886,7 @@ class ThousandPossibleQuizzes(Scene):FadeIn(title))self.play(- OldLaggedStart(+ LaggedStartMap(FadeIn, quizzes,run_time = 3,lag_ratio = 0.2,@@ -993,7 +993,7 @@ class ThousandPossibleQuizzes(Scene):MoveToTarget(right_split),)self.play(FadeIn(left_label))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyMethod, left_split,lambda m : (m.set_color, YELLOW),rate_func = there_and_back,@@ -1196,7 +1196,7 @@ class ThousandPossibleQuizzes(Scene):for split in all_splits:self.play(MoveToTarget(split))self.wait()- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyMethod, all_right,lambda m : (m.set_color, YELLOW),rate_func = there_and_back,@@ -1519,7 +1519,7 @@ class ShowAllEightConditionals(Scene):)rect.shift(0.5*SMALL_BUFF*RIGHT)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeIn, equations,run_time = 5,lag_ratio = 0.3@@ -1628,7 +1628,7 @@ class ComputeProbabilityOfOneWrong(Scene):))self.wait()for group in point_8s, point_2s:- self.play(OldLaggedStart(+ self.play(LaggedStartMap(Indicate, group,rate_func = there_and_back,lag_ratio = 0.7@@ -1727,7 +1727,7 @@ class ShowFullDistribution(Scene):p_slot_group.next_to(brace, vect)group = VGroup(*it.chain(p_slot_group, brace, score))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeIn, group,run_time = 2,lag_ratio = 0.7,@@ -1767,7 +1767,7 @@ class ShowFullDistribution(Scene):))self.play(- OldLaggedStart(FadeIn, VGroup(*it.chain(*[+ LaggedStartMap(FadeIn, VGroup(*it.chain(*[submobfor submob in chartif submob is not chart.bars@@ -1796,8 +1796,8 @@ class ShowFullDistribution(Scene):bars_copy = bars.copy()self.play(- OldLaggedStart(FadeIn, bars),- OldLaggedStart(FadeIn, nums),+ LaggedStartMap(FadeIn, bars),+ LaggedStartMap(FadeIn, nums),)self.wait(2)self.play(bars_copy.shift, -vect)@@ -1867,7 +1867,7 @@ class ShowFullDistribution(Scene):last = probbuff = SMALL_BUFF- self.play(OldLaggedStart(FadeIn, probs))+ self.play(LaggedStartMap(FadeIn, probs))self.wait()return probs@@ -2323,7 +2323,7 @@ class NameBinomial(Scene):faded_checkmarks = VGroup(*[m for m in checkmarks if m not in full_checks])self.play(*[- OldLaggedStart(+ LaggedStartMap(Write, mob,run_time = 3,lag_ratio = 0.3@@ -2332,7 +2332,7 @@ class NameBinomial(Scene):])self.wait()self.play(- OldLaggedStart(+ LaggedStartMap(Rotate, flipped_arrows,angle = np.pi,in_place = True,@@ -2439,7 +2439,7 @@ class NameBinomial(Scene):self.play(ShowCreation(chart_rect))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ShowCreation, girl_rects,run_time = 2,lag_ratio = 0.5,@@ -2447,7 +2447,7 @@ class NameBinomial(Scene):self.wait()self.play(Write(prob))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(Indicate, girls,run_time = 3,lag_ratio = 0.3,@@ -2774,7 +2774,7 @@ class GeneralBinomialDistributionValues(Scene):self.play(FadeIn(shown_prob))self.wait()- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeIn, self.full_probability,run_time = 4,lag_ratio = 0.5,@@ -2809,7 +2809,7 @@ class GeneralBinomialDistributionValues(Scene):ten_choose_ks.set_color_by_gradient(BLUE, YELLOW)self.play(- OldLaggedStart(FadeIn, triangle),+ LaggedStartMap(FadeIn, triangle),FadeOut(self.shown_prob))self.play(@@ -2819,7 +2819,7 @@ class GeneralBinomialDistributionValues(Scene):self.wait()self.play(ApplyWave(self.chart.bars, direction = UP))self.play(FocusOn(last_row))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyMethod, last_row,lambda m : (m.scale_in_place, 1.2),rate_func = there_and_back,@@ -3098,7 +3098,7 @@ class CorrectForDependence(NameBinomial):if len(indices) > 1:kwargs.update({"run_time" : 2})return [- OldLaggedStart(+ LaggedStartMap(MoveToTarget, mover,**kwargs)@@ -3220,7 +3220,7 @@ class AssumeOrderDoesntMatter(Scene):def coming_soon(self):self.play(- OldLaggedStart(+ LaggedStartMap(ApplyMethod, self.assumption_group,lambda m : (m.shift, FRAME_HEIGHT*DOWN),remover = True,diff --git a/active_projects/shadows.py b/active_projects/shadows.pyindex 1ffb92ebf..398c435f8 100644--- a/active_projects/shadows.py+++ b/active_projects/shadows.py@@ -151,7 +151,7 @@ class ShowShadows(ThreeDScene):self.move_camera(**self.initial_orientation_config,added_anims=[- OldLaggedStart(DrawBorderThenFill, obj3d)+ LaggedStartMap(DrawBorderThenFill, obj3d)],run_time=2)@@ -276,7 +276,7 @@ class ShowInfinitelyFarLightSource(ShowShadows):source_obj3d.set_shade_in_3d(False)source_obj3d.fade(1)- self.play(OldLaggedStart(ShowCreation, lines))+ self.play(LaggedStartMap(ShowCreation, lines))self.wait()self.add(source_obj3d, lines)self.play(diff --git a/manimlib/animation/composition.py b/manimlib/animation/composition.pyindex c5dd6d1aa..3b9a61978 100644--- a/manimlib/animation/composition.py+++ b/manimlib/animation/composition.py@@ -7,7 +7,6 @@ from manimlib.utils.bezier import interpolatefrom manimlib.utils.config_ops import digest_configfrom manimlib.utils.iterables import remove_list_redundanciesfrom manimlib.utils.rate_functions import linear-from manimlib.utils.rate_functions import squish_rate_funcDEFAULT_LAGGED_START_LAG_RATIO = 0.05@@ -140,52 +139,20 @@ class LaggedStart(AnimationGroup):}-# This class is depricated. One should use OldLaggedStart-# instead, which has different syntax, but more generality-class OldLaggedStart(Animation):+class LaggedStartMap(LaggedStart):CONFIG = {"run_time": 2,- "lag_ratio": 0.5,}def __init__(self, AnimationClass, mobject, arg_creator=None, **kwargs):- print(- "Warning, this scene is using the animation "- "OldLaggedStart, which is now deprecated. Use "- "LaggedStart instead."- )- for key in ["rate_func", "run_time"]:- if key in AnimationClass.CONFIG:- setattr(self, key, AnimationClass.CONFIG[key])- digest_config(self, kwargs)- for key in "rate_func", "run_time", "lag_ratio":- if key in kwargs:- kwargs.pop(key)-- if arg_creator is None:- def arg_creator(mobject):- return (mobject,)- self.subanimations = [- AnimationClass(- *arg_creator(submob),- run_time=self.run_time,- rate_func=squish_rate_func(- self.rate_func, beta, beta + self.lag_ratio- ),- **kwargs- )- for submob, beta in zip(- mobject,- np.linspace(0, 1 - self.lag_ratio, len(mobject))- )+ args_list = []+ for submob in mobject:+ if arg_creator:+ args_list.append(arg_creator(submob))+ else:+ args_list.append((submob,))+ animations = [+ AnimationClass(*args, **kwargs)+ for args in args_list]- Animation.__init__(self, mobject, **kwargs)-- def update(self, alpha):- for anim in self.subanimations:- anim.update(alpha)- return self-- def clean_up_from_scene(self, *args, **kwargs):- for anim in self.subanimations:- anim.clean_up_from_scene(*args, **kwargs)+ super().__init__(*animations, **kwargs)diff --git a/manimlib/for_3b1b_videos/common_scenes.py b/manimlib/for_3b1b_videos/common_scenes.pyindex 9c06105ad..ee2e4d1a2 100644--- a/manimlib/for_3b1b_videos/common_scenes.py+++ b/manimlib/for_3b1b_videos/common_scenes.py@@ -1,6 +1,6 @@import random-from manimlib.animation.composition import OldLaggedStart+from manimlib.animation.composition import LaggedStartMapfrom manimlib.animation.creation import DrawBorderThenFillfrom manimlib.animation.creation import Writefrom manimlib.animation.fading import FadeIn@@ -132,7 +132,7 @@ class PatreonThanks(Scene):DrawBorderThenFill(patreon_logo),]self.play(- OldLaggedStart(+ LaggedStartMap(FadeIn, group,run_time=2,),diff --git a/manimlib/once_useful_constructs/light.py b/manimlib/once_useful_constructs/light.pyindex 89bd7655c..048829342 100644--- a/manimlib/once_useful_constructs/light.py+++ b/manimlib/once_useful_constructs/light.py@@ -2,7 +2,7 @@ from traceback import *from scipy.spatial import ConvexHull-from manimlib.animation.composition import OldLaggedStart+from manimlib.animation.composition import LaggedStartMapfrom manimlib.animation.fading import FadeInfrom manimlib.animation.fading import FadeOutfrom manimlib.animation.transform import Transform@@ -44,7 +44,7 @@ def inverse_quadratic(maxint, scale, cutoff):return inverse_power_law(maxint, scale, cutoff, 2)-class SwitchOn(OldLaggedStart):+class SwitchOn(LaggedStartMap):CONFIG = {"lag_ratio": 0.2,"run_time": SWITCH_ON_RUN_TIME@@ -54,12 +54,12 @@ class SwitchOn(OldLaggedStart):if (not isinstance(light, AmbientLight) and not isinstance(light, Spotlight)):raise Exception("Only AmbientLights and Spotlights can be switched on")- OldLaggedStart.__init__(+ LaggedStartMap.__init__(self, FadeIn, light, **kwargs)-class SwitchOff(OldLaggedStart):+class SwitchOff(LaggedStartMap):CONFIG = {"lag_ratio": 0.2,"run_time": SWITCH_ON_RUN_TIME@@ -70,7 +70,7 @@ class SwitchOff(OldLaggedStart):raise Exception("Only AmbientLights and Spotlights can be switched off")light.submobjects = light.submobjects[::-1]- OldLaggedStart.__init__(self,+ LaggedStartMap.__init__(self,FadeOut, light, **kwargs)light.submobjects = light.submobjects[::-1]diff --git a/old_projects/256.py b/old_projects/256.pyindex ffdbd7fdc..746fc0644 100644--- a/old_projects/256.py+++ b/old_projects/256.py@@ -154,7 +154,7 @@ class BreakUp2To256(PiCreatureScene):self.play(self.bits.to_corner, DOWN+LEFT,Transform(four_billions, target_four_billions),- OldLaggedStart(FadeIn, parens),+ LaggedStartMap(FadeIn, parens),FadeOut(to_fade))self.wait()@@ -331,7 +331,7 @@ class MainBreakdown(Scene):)self.wait()self.play(- OldLaggedStart(+ LaggedStartMap(ApplyFunction, gpus,lambda g : (lambda m : m.scale(0.01).move_to(laptop),@@ -384,7 +384,7 @@ class MainBreakdown(Scene):self.wait(2)self.play(Write(millions))self.wait(2)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(Indicate, self.group_of_four_billion_things,run_time = 4,rate_func = there_and_back,@@ -454,7 +454,7 @@ class MainBreakdown(Scene):self.play(FadeIn(milky_way))self.play(Write(n_stars_estimate))self.wait()- self.play(OldLaggedStart(+ self.play(LaggedStartMap(Indicate, self.group_of_four_billion_things,rate_func = there_and_back,lag_ratio = 0.2,@@ -580,7 +580,7 @@ class MainBreakdown(Scene):four_billion.scale, 2,four_billion.next_to, brace, LEFT,GrowFromCenter(brace),- OldLaggedStart(+ LaggedStartMap(FadeIn, group,run_time = 3,lag_ratio = 0.2@@ -731,7 +731,7 @@ class StateOfBitcoin(TeacherStudentsScene):rate.restore,)self.change_student_modes(*["pondering"]*3)- self.play(OldLaggedStart(FadeIn, kilogoogle))+ self.play(LaggedStartMap(FadeIn, kilogoogle))self.change_student_modes(*["surprised"]*3)self.wait()self.change_student_modes(@@ -758,7 +758,7 @@ class StateOfBitcoin(TeacherStudentsScene):*["pondering"]*3,added_anims = [Write(asic_rate)])- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeIn, circuit,run_time = 3,lag_ratio = 0.2,diff --git a/old_projects/WindingNumber.py b/old_projects/WindingNumber.pyindex d24fca526..7d24d1231 100644--- a/old_projects/WindingNumber.py+++ b/old_projects/WindingNumber.py@@ -2009,7 +2009,7 @@ class LoopSplitScene(ColorMappedObjectsScene):play_combined_fade(start, end, midline_lines_vmobject, midline_bullets)def flash_circles(circles):- self.play(OldLaggedStart(FadeIn, VGroup(circles)))+ self.play(LaggedStartMap(FadeIn, VGroup(circles)))self.wait()self.play(FadeOut(VGroup(circles)))self.wait()diff --git a/old_projects/WindingNumber_G.py b/old_projects/WindingNumber_G.pyindex 85ecd39dc..2c88b5262 100644--- a/old_projects/WindingNumber_G.py+++ b/old_projects/WindingNumber_G.py@@ -114,7 +114,7 @@ class IntroSceneWrapper(PiCreatureScene):self.play(Write(solver))self.play(- OldLaggedStart(FadeIn, xy_equation, run_time = 1),+ LaggedStartMap(FadeIn, xy_equation, run_time = 1),morty.change, "pondering")self.wait(2)@@ -135,7 +135,7 @@ class IntroSceneWrapper(PiCreatureScene):self.play(solver.restore)self.wait()- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeOut, VGroup(solver, z_equation, zeta)))self.play(@@ -885,8 +885,8 @@ class IntroduceInputOutputScene(InputOutputScene):function_label.add_background_rectangle()- self.play(OldLaggedStart(GrowFromCenter, dots))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(GrowFromCenter, dots))+ self.play(LaggedStartMap(MoveToTarget, dots,path_arc = path_arc))@@ -1059,7 +1059,7 @@ class IntroduceVectorField(IntroduceInputOutputScene):factor = target_length / vector.get_length()vector.target.scale(factor, about_point = vector.get_start())- self.play(OldLaggedStart(MoveToTarget, newer_in_vectors))+ self.play(LaggedStartMap(MoveToTarget, newer_in_vectors))self.wait()class TwoDScreenInOurThreeDWorld(AltTeacherStudentsScene, ThreeDScene):@@ -1120,10 +1120,10 @@ class TwoDScreenInOurThreeDWorld(AltTeacherStudentsScene, ThreeDScene):))self.play(- OldLaggedStart(GrowFromCenter, dots, run_time = 1),+ LaggedStartMap(GrowFromCenter, dots, run_time = 1),self.get_student_changes(*3*["erm"]),)- self.play(OldLaggedStart(MoveToTarget, dots, path_arc = -TAU/4))+ self.play(LaggedStartMap(MoveToTarget, dots, path_arc = -TAU/4))self.wait(3)@@ -1194,8 +1194,8 @@ class EveryOutputPointHasAColor(ColorMappedObjectsScene):while n <= len(dots):dot_groups.add(dots[n-1:m*n-1])n *= m- self.play(OldLaggedStart(- OldLaggedStart, dot_groups,+ self.play(LaggedStartMap(+ LaggedStartMap, dot_groups,lambda dg : (GrowFromCenter, dg),run_time = 8,lag_ratio = 0.2,@@ -1231,22 +1231,22 @@ class DotsHoppingToColor(InputOutputScene):output_plane.lines_to_fade.set_stroke, {"width" : 0},)self.wait()- self.play(OldLaggedStart(GrowFromCenter, dots, run_time = 3))+ self.play(LaggedStartMap(GrowFromCenter, dots, run_time = 3))self.wait()#Hop over and back- self.play(OldLaggedStart(+ self.play(LaggedStartMap(MoveToTarget, dots,path_arc = -TAU/4,run_time = 3,))self.wait()- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyMethod, dots,lambda d : (d.set_fill, d.target_color),))self.wait()- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyMethod, dots,lambda d : (d.move_to, d.original_position),path_arc = TAU/4,@@ -1358,11 +1358,11 @@ class DotsHoppingToColor(InputOutputScene):self.play(FadeOut(input_coloring),input_plane.white_parts.set_color, WHITE,- OldLaggedStart(GrowFromCenter, dots)+ LaggedStartMap(GrowFromCenter, dots))self.wait()random.shuffle(dots.submobjects)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeOut, dots,lag_ratio = 0.05,run_time = 10,@@ -1753,10 +1753,10 @@ class HypothesisAboutFullyColoredBoundary(ColorMappedObjectsScene):self.add(hypothesis[0])self.play(- OldLaggedStart(FadeIn, hypothesis[1]),+ LaggedStartMap(FadeIn, hypothesis[1]),ShowCreation(square, run_time = 8))- self.play(OldLaggedStart(FadeIn, hypothesis[2]))+ self.play(LaggedStartMap(FadeIn, hypothesis[2]))self.play(square.set_fill, {"opacity" : 1}, run_time = 2)self.wait()@@ -1971,8 +1971,8 @@ class FailureOfComposition(ColorMappedObjectsScene):self.add(question)- self.play(OldLaggedStart(ShowCreation, small_squares, lag_ratio = 0.8))- self.play(OldLaggedStart(Write, no_answers))+ self.play(LaggedStartMap(ShowCreation, small_squares, lag_ratio = 0.8))+ self.play(LaggedStartMap(Write, no_answers))self.wait()self.play(small_squares.arrange, DOWN, {"buff" : 0},@@ -1991,7 +1991,7 @@ class FailureOfComposition(ColorMappedObjectsScene):Write(yes_answers),Write(yes_answers_in_equation),)- self.play(OldLaggedStart(FadeIn, q_marks, run_time = 1, lag_ratio = 0.8))+ self.play(LaggedStartMap(FadeIn, q_marks, run_time = 1, lag_ratio = 0.8))self.wait(2)self.play(small_squares.restore,@@ -2677,7 +2677,7 @@ class SearchSpacePerimeterVsArea(EquationSolver2d):self.remove(all_parts)for x in range(2):alt_path_parts.save_state()- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeIn, alt_path_parts,rate_func = there_and_back,lag_ratio = 0.3,@@ -2760,7 +2760,7 @@ class ShowComplexFunction(Scene):self.play(Write(plane),FadeIn(rect),- OldLaggedStart(FadeIn, title)+ LaggedStartMap(FadeIn, title))self.play(*list(map(FadeIn, [x_dot, x_label])))self.wait()@@ -2906,7 +2906,7 @@ class AllOfTheVideos(Scene):images.set_height(FRAME_HEIGHT)random.shuffle(images.submobjects)- self.play(OldLaggedStart(FadeIn, images, run_time = 4))+ self.play(LaggedStartMap(FadeIn, images, run_time = 4))self.wait()class EndingCredits(Scene):@@ -2924,7 +2924,7 @@ class EndingCredits(Scene):pi.change_mode("happy")self.add(pi)- self.play(OldLaggedStart(FadeIn, text), pi.look_at, text)+ self.play(LaggedStartMap(FadeIn, text), pi.look_at, text)self.play(pi.change, "wave_1", text)self.play(Blink(pi))self.play(pi.change, "happy")@@ -2956,7 +2956,7 @@ class MentionQAndA(Scene):questions.arrange(DOWN, buff = 0.75)questions.next_to(title, DOWN, LARGE_BUFF)- self.play(OldLaggedStart(FadeIn, questions, run_time = 3))+ self.play(LaggedStartMap(FadeIn, questions, run_time = 3))self.wait(2)self.play(FadeOut(questions))self.wait()@@ -3008,7 +3008,7 @@ class InfiniteListOfTopics(Scene):lines[-1].next_to(lines[-2], DOWN)self.add(rect, title)- self.play(OldLaggedStart(FadeIn, lines, run_time = 5))+ self.play(LaggedStartMap(FadeIn, lines, run_time = 5))self.wait()class ManyIterations(Scene):diff --git a/old_projects/alt_calc.py b/old_projects/alt_calc.pyindex 8177bae44..7eb31ff13 100644--- a/old_projects/alt_calc.py+++ b/old_projects/alt_calc.py@@ -330,7 +330,7 @@ class NumberlineTransformationScene(ZoomedScene):# Add tiny dotsif local_sample_dots is not None:- anims.append(OldLaggedStart(GrowFromCenter, local_sample_dots))+ anims.append(LaggedStartMap(GrowFromCenter, local_sample_dots))zcbr_group.add(local_sample_dots)if first_added_anims:@@ -424,7 +424,7 @@ class ExampleNumberlineTransformationScene(NumberlineTransformationScene):sample_dots = self.get_sample_dots()local_sample_dots = self.get_local_sample_dots(x)- self.play(OldLaggedStart(GrowFromCenter, sample_dots))+ self.play(LaggedStartMap(GrowFromCenter, sample_dots))self.zoom_in_on_input(x,local_sample_dots=local_sample_dots,@@ -461,7 +461,7 @@ class WriteOpeningWords(Scene):word_wait = 2 * letter_waitcomma_wait = 5 * letter_waitfor word in words:- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeIn, word,run_time=len(word) * letter_wait,lag_ratio=1.5 / len(word)@@ -833,7 +833,7 @@ class GraphicalIntuitions(GraphScene):)self.play(FadeIn(integral_text))self.play(- OldLaggedStart(+ LaggedStartMap(GrowFromEdge, rects,lambda r: (r, DOWN)),@@ -855,7 +855,7 @@ class GraphicalIntuitions(GraphScene):word.add_background_rectangle()words.arrange(DOWN)words.to_edge(UP)- return OldLaggedStart(+ return LaggedStartMap(FadeIn, words,rate_func=there_and_back,run_time=len(words) - 1,@@ -1009,8 +1009,8 @@ class MoreTopics(Scene):self.add(calculus)self.play(- OldLaggedStart(ShowCreation, lines),- OldLaggedStart(Write, others),+ LaggedStartMap(ShowCreation, lines),+ LaggedStartMap(Write, others),)self.wait()@@ -1364,12 +1364,12 @@ class IntroduceTransformationView(NumberlineTransformationScene):sd.save_state()sd.scale(2)sd.fade(1)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyMethod, sample_dots,lambda sd: (sd.restore,),run_time=2))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(GrowArrow, arrows,run_time=6,lag_ratio=0.3,@@ -1380,7 +1380,7 @@ class IntroduceTransformationView(NumberlineTransformationScene):run_time=3)self.wait()- self.play(OldLaggedStart(FadeOut, arrows, run_time=1))+ self.play(LaggedStartMap(FadeOut, arrows, run_time=1))self.sample_dots = sample_dotsself.sample_dot_ghosts = sample_dot_ghosts@@ -1541,8 +1541,8 @@ class TalkThroughXSquaredExample(IntroduceTransformationView):sample_dot_ghosts = sample_dots.copy().fade(0.5)self.play(- OldLaggedStart(DrawBorderThenFill, sample_dots),- OldLaggedStart(FadeOut, int_arrows),+ LaggedStartMap(DrawBorderThenFill, sample_dots),+ LaggedStartMap(FadeOut, int_arrows),)self.remove(int_dot_ghosts)self.add(sample_dot_ghosts)@@ -1954,8 +1954,8 @@ class XSquaredForNegativeInput(TalkThroughXSquaredExample):)sample_dots.set_fill(opacity=0.8)- self.play(OldLaggedStart(DrawBorderThenFill, sample_dots))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(DrawBorderThenFill, sample_dots))+ self.play(LaggedStartMap(ApplyFunction, sample_dots[len(sample_dots) / 2:0:-1],lambda mob: (lambda m: m.scale(2).shift(SMALL_BUFF * UP).set_color(PINK),@@ -2064,7 +2064,7 @@ class IntroduceContinuedFractionPuzzle(PiCreatureScene):group.to_corner(UR)self.play(- OldLaggedStart(+ LaggedStartMap(Write, frac,run_time=15,lag_ratio=0.15,@@ -2372,7 +2372,7 @@ class ThinkAboutWithRepeatedApplication(IntroduceContinuedFractionPuzzle):morty.change, "confused",friend.change, "confused",)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ShowCreationThenDestruction, plus_rects,run_time=2,lag_ratio=0.35,@@ -2400,9 +2400,9 @@ class ThinkAboutWithRepeatedApplication(IntroduceContinuedFractionPuzzle):question.next_to(arrow, RIGHT)self.play(- OldLaggedStart(FadeIn, question, run_time=1),+ LaggedStartMap(FadeIn, question, run_time=1),GrowArrow(arrow),- OldLaggedStart(+ LaggedStartMap(ApplyMethod, frac,lambda m: (m.set_color, RED),rate_func=there_and_back,@@ -2659,7 +2659,7 @@ class ShowRepeatedApplication(Scene):self.wait()self.play(GrowFromEdge(line[5], LEFT))- self.play(OldLaggedStart(GrowFromCenter, line[6]))+ self.play(LaggedStartMap(GrowFromCenter, line[6]))self.wait()self.play(FadeIn(line[7]))@@ -2956,7 +2956,7 @@ class AnalyzeFunctionWithTransformations(NumberlineTransformationScene):sample_dots.set_stroke(BLACK, 0.5)sample_points = list(map(Mobject.get_center, sample_dots))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeInFrom, sample_dots,lambda m: (m, UP)))@@ -3013,9 +3013,9 @@ class AnalyzeFunctionWithTransformations(NumberlineTransformationScene):one_plus_rect = BackgroundRectangle(one_plus)one_plus_rect.set_fill(BLACK, opacity=0.8)- self.play(OldLaggedStart(GrowArrow, arrows))+ self.play(LaggedStartMap(GrowArrow, arrows))self.wait()- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyMethod, arrows,lambda a: (a.scale, 0.7),rate_func=there_and_back,@@ -3069,7 +3069,7 @@ class AnalyzeFunctionWithTransformations(NumberlineTransformationScene):return arrowself.play(- OldLaggedStart(+ LaggedStartMap(ApplyFunction, self.all_arrows,lambda a: (fade_arrow, a)),@@ -3244,7 +3244,7 @@ class StabilityAndInstability(AnalyzeFunctionWithTransformations):arrows = VGroup(*[a for a in self.all_arrows if get_norm(a.get_start() - point) < 0.75]).copy()arrows.set_fill(PINK, 1)arrows.set_stroke(PINK, 3)- arrows.second_anim = OldLaggedStart(+ arrows.second_anim = LaggedStartMap(ApplyMethod, arrows,lambda m: (m.set_color, YELLOW),rate_func=there_and_back_with_pause,@@ -3314,7 +3314,7 @@ class StabilityAndInstability(AnalyzeFunctionWithTransformations):for deriv_label, dot_group in zip(deriv_labels, dot_groups):self.play(FadeInFromDown(deriv_label))- self.play(OldLaggedStart(GrowFromCenter, dot_group))+ self.play(LaggedStartMap(GrowFromCenter, dot_group))self.play(*list(map(MoveToTarget, dot_group)), run_time=2)self.wait()@@ -3338,7 +3338,7 @@ class StaticAlgebraicObject(Scene):polynomial.move_to(title)self.add(title)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(GrowFromCenter, frac,lag_ratio=0.1,run_time=3@@ -3433,7 +3433,7 @@ class TopicsAfterSingleVariable(PiCreatureScene, MoreTopics):creature.target.change(mode, self.other_topics)creatures.fade(1)- self.play(OldLaggedStart(MoveToTarget, creatures))+ self.play(LaggedStartMap(MoveToTarget, creatures))self.wait(2)def zero_in_on_complex_analysis(self):@@ -3445,8 +3445,8 @@ class TopicsAfterSingleVariable(PiCreatureScene, MoreTopics):complex_analysis.scale, 1.25,complex_analysis.center,complex_analysis.to_edge, UP,- OldLaggedStart(FadeOut, self.other_topics),- OldLaggedStart(FadeOut, self.lines),+ LaggedStartMap(FadeOut, self.other_topics),+ LaggedStartMap(FadeOut, self.lines),FadeOut(self.calculus),*[ApplyMethod(creature.change, "pondering")@@ -3567,7 +3567,7 @@ class PrinciplesOverlay(PiCreatureScene):self.wait(4)self.play(FadeInFromDown(q_marks[0]))self.wait(2)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeInFromDown, q_marks[1:],run_time=3))@@ -3600,7 +3600,7 @@ class ManyInfiniteExpressions(Scene):power_tower.set_color_by_gradient(BLUE, GREEN)self.play(*[- OldLaggedStart(+ LaggedStartMap(GrowFromCenter, group,lag_ratio=0.1,run_time=8,diff --git a/old_projects/basel/basel.py b/old_projects/basel/basel.pyindex 7eb77dba3..79b9dc411 100644--- a/old_projects/basel/basel.py+++ b/old_projects/basel/basel.py@@ -4046,11 +4046,11 @@ class FinalSumManipulationScene(PiCreatureScene):full_ambient_lights.add(ls.ambient_light)self.play(- OldLaggedStart(FadeIn, full_lighthouses, lag_ratio = 0.2, run_time = 3),+ LaggedStartMap(FadeIn, full_lighthouses, lag_ratio = 0.2, run_time = 3),)self.play(- OldLaggedStart(SwitchOn, full_ambient_lights, lag_ratio = 0.2, run_time = 3)+ LaggedStartMap(SwitchOn, full_ambient_lights, lag_ratio = 0.2, run_time = 3))# for ls in full_lights.submobjects:@@ -4399,7 +4399,7 @@ class InfiniteCircleScene(PiCreatureScene):self.wait()self.play(- OldLaggedStart(FadeIn,infsum,lag_ratio = 0.2)+ LaggedStartMap(FadeIn,infsum,lag_ratio = 0.2))self.wait()diff --git a/old_projects/basel/basel2.py b/old_projects/basel/basel2.pyindex 5b3560c46..eaaa4ccc4 100644--- a/old_projects/basel/basel2.py+++ b/old_projects/basel/basel2.py@@ -828,8 +828,8 @@ class MathematicalWebOfConnections(PiCreatureScene):self.play(Write(title),- OldLaggedStart(ShowCreation, edges, run_time = 3),- OldLaggedStart(GrowFromCenter, dots, run_time = 3)+ LaggedStartMap(ShowCreation, edges, run_time = 3),+ LaggedStartMap(GrowFromCenter, dots, run_time = 3))self.play(path_dots[0].set_color, RED)for dot, edge in zip(path_dots[1:], path_edges):@@ -956,12 +956,12 @@ class FirstLighthouseScene(PiCreatureScene):self.play(morty.restore)self.play(morty.change, "pondering",- OldLaggedStart(+ LaggedStartMap(FadeIn, lighthouses,run_time = 1))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(SwitchOn, VGroup(*[ls.ambient_lightfor ls in light_sources@@ -1043,7 +1043,7 @@ class FirstLighthouseScene(PiCreatureScene):)# First lighthouse has apparent reading- self.play(OldLaggedStart(FadeOut, light_sources[1:]))+ self.play(LaggedStartMap(FadeOut, light_sources[1:]))self.wait()self.play(triangle_anim,@@ -1088,11 +1088,11 @@ class FirstLighthouseScene(PiCreatureScene):#Switch them all onself.play(- OldLaggedStart(FadeIn, lighthouses[1:]),+ LaggedStartMap(FadeIn, lighthouses[1:]),morty.change, "hooray",)self.play(- OldLaggedStart(+ LaggedStartMap(SwitchOn, VGroup(*[ls.ambient_lightfor ls in light_sources[1:]@@ -1121,7 +1121,7 @@ class FirstLighthouseScene(PiCreatureScene):morty = self.pi_creatureself.play(- OldLaggedStart(+ LaggedStartMap(Rotate, light_sources,lambda m : (m, (2*random.random()-1)*90*DEGREES),about_point = origin,@@ -1838,7 +1838,7 @@ class InverseSquareLaw(ThreeDScene):run_time = 2,)self.begin_ambient_camera_rotation(rate = -0.01)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyMethod, screen_copy_groups[2],lambda m : (m.set_color, RED),run_time = 5,@@ -1899,7 +1899,7 @@ class OtherInstanceOfInverseSquareLaw(Scene):return Broadcast(dot, big_radius = 5, run_time = 5)self.play(- OldLaggedStart(FadeIn, items, run_time = 4, lag_ratio = 0.7),+ LaggedStartMap(FadeIn, items, run_time = 4, lag_ratio = 0.7),Succession(*[get_broadcast()for x in range(2)@@ -2276,7 +2276,7 @@ class TwoLightSourcesScene(ManipulateLightsourceSetups):self.play(FadeIn(lsC))self.play(Write(identical_lighthouses_words),- OldLaggedStart(GrowArrow, identical_lighthouses_arrows)+ LaggedStartMap(GrowArrow, identical_lighthouses_arrows))self.wait()self.play(*list(map(FadeOut, [@@ -2337,7 +2337,7 @@ class MathologerVideoWrapper(Scene):self.play(logo.shift, FRAME_WIDTH*LEFT,- OldLaggedStart(FadeIn, title),+ LaggedStartMap(FadeIn, title),run_time = 2)self.play(ShowCreation(screen))@@ -2646,8 +2646,8 @@ class IPTScene(TwoLightSourcesScene, ZoomedScene):self.wait()spotlights_update_anim.update(0)self.play(- OldLaggedStart(FadeIn, spotlight_a),- OldLaggedStart(FadeIn, spotlight_b),+ LaggedStartMap(FadeIn, spotlight_a),+ LaggedStartMap(FadeIn, spotlight_b),Animation(screen_arrow),)self.add(spotlights_update_anim)@@ -4043,11 +4043,11 @@ class FinalSumManipulationScene(PiCreatureScene):full_ambient_lights.add(ls.ambient_light)self.play(- OldLaggedStart(FadeIn, full_lighthouses, lag_ratio = 0.2, run_time = 3),+ LaggedStartMap(FadeIn, full_lighthouses, lag_ratio = 0.2, run_time = 3),)self.play(- OldLaggedStart(SwitchOn, full_ambient_lights, lag_ratio = 0.2, run_time = 3)+ LaggedStartMap(SwitchOn, full_ambient_lights, lag_ratio = 0.2, run_time = 3))# for ls in full_lights.submobjects:@@ -4333,7 +4333,7 @@ class InfiniteCircleScene(PiCreatureScene):self.wait()self.play(- OldLaggedStart(FadeIn,infsum,lag_ratio = 0.2)+ LaggedStartMap(FadeIn,infsum,lag_ratio = 0.2))self.wait()@@ -4404,7 +4404,7 @@ class Credits(Scene):patreon_logo.to_edge(UP)for credit in credits:- self.play(OldLaggedStart(FadeIn, credit[0]))+ self.play(LaggedStartMap(FadeIn, credit[0]))self.play(FadeIn(credit[1]))self.wait()self.play(diff --git a/old_projects/bell.py b/old_projects/bell.pyindex 5bf331e8d..87c9fe2fe 100644--- a/old_projects/bell.py+++ b/old_projects/bell.py@@ -887,7 +887,7 @@ class ShowVariousFilterPairsFrom0To45(ShowVariousFilterPairs):for cos, rect in zip(cosines, rects[1:]):cos.next_to(rect, OUT, SMALL_BUFF)- self.play(OldLaggedStart(ShowCreation, rects))+ self.play(LaggedStartMap(ShowCreation, rects))self.wait()self.play(*list(map(Write, cosines)), run_time = 2)self.wait()@@ -1926,7 +1926,7 @@ class VennDiagramProofByContradiction(Scene):mover.generate_target()mover.target.shift(1.2*UP + 0.6*LEFT)mover.target.set_stroke(WHITE)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(MoveToTarget, movers,path_arc = np.pi,lag_ratio = 0.3diff --git a/old_projects/borsuk_addition.py b/old_projects/borsuk_addition.pyindex d6cc6bd35..8b38694e7 100644--- a/old_projects/borsuk_addition.py+++ b/old_projects/borsuk_addition.py@@ -126,7 +126,7 @@ class UnexpectedConnection(Scene):self.add(circle, radius, center_dot, decimal, arc)self.play(Rotate(radius, PI - 1e-7, about_point=center),- OldLaggedStart(FadeInFromDown, primes),+ LaggedStartMap(FadeInFromDown, primes),run_time=4)self.remove(decimal)@@ -172,8 +172,8 @@ class MapOfVideo(MovingCameraScene):Arrow(images[3], images[4], buff=SMALL_BUFF),)- self.play(OldLaggedStart(FadeInFromDown, images, run_time=4))- self.play(OldLaggedStart(GrowArrow, arrows))+ self.play(LaggedStartMap(FadeInFromDown, images, run_time=4))+ self.play(LaggedStartMap(GrowArrow, arrows))self.wait()group = Group(images, arrows)for image in images:@@ -240,7 +240,7 @@ class MathIsDeep(PiCreatureScene):# num_mobs[1].add_subpath(num_mobs[1].points)self.play(- OldLaggedStart(+ LaggedStartMap(FadeInFromLarge, words,scale_factor=1.5,run_time=0.6,@@ -258,7 +258,7 @@ class MathIsDeep(PiCreatureScene):self.pi_creature.change, "thinking",*map(GrowArrow, low_arrows),)- self.play(OldLaggedStart(ShowCreationThenDestruction, n_sum_border))+ self.play(LaggedStartMap(ShowCreationThenDestruction, n_sum_border))self.play(Blink(self.pi_creature))self.wait()@@ -358,15 +358,15 @@ class TopologyWordBreak(Scene):genus_labels.shift(SMALL_BUFF * UP)self.play(Write(word))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyMethod, word,lambda m: (m.set_color, m.target_color),run_time=1))self.play(- OldLaggedStart(MoveToTarget, word),- OldLaggedStart(FadeIn, signs),- OldLaggedStart(FadeInFromDown, genus_labels),+ LaggedStartMap(MoveToTarget, word),+ LaggedStartMap(FadeIn, signs),+ LaggedStartMap(FadeInFromDown, genus_labels),)self.wait(3)@@ -533,7 +533,7 @@ class FunctionGInSymbols(Scene):self.wait()self.play(neg_g_of_p.restore)rects = VGroup(*map(SurroundingRectangle, [f_of_p, f_of_neg_p]))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ShowCreationThenDestruction, rects,lag_ratio=0.8))@@ -1128,12 +1128,12 @@ class DivisionOfUnity(Scene):brace.add(label)self.add(line, lower_brace)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ShowCreation, v_lines[1:3],lag_ratio=0.8,run_time=1))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(GrowFromCenter, upper_braces))self.wait()diff --git a/old_projects/clacks/question.py b/old_projects/clacks/question.pyindex bb201e998..cf6ff9384 100644--- a/old_projects/clacks/question.py+++ b/old_projects/clacks/question.py@@ -446,7 +446,7 @@ class MathAndPhysicsConspiring(Scene):to_fade = VGroup(math_title, *math_stuffs, physics_title)self.play(- OldLaggedStart(+ LaggedStartMap(FadeInFromDown, to_fade,lag_ratio=0.7,run_time=3,@@ -605,7 +605,7 @@ class TwoBlocksLabel(Scene):arrows.set_color(RED)self.play(Write(label),- OldLaggedStart(GrowArrow, arrows, lag_ratio=0.7),+ LaggedStartMap(GrowArrow, arrows, lag_ratio=0.7),run_time=1)self.wait()@@ -928,7 +928,7 @@ class PiComputingAlgorithmsAxes(Scene):method.shift_onto_screen()algorithms.add(VGroup(method, cross))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeInFromDown, algorithms,run_time=4,lag_ratio=0.4,@@ -1238,7 +1238,7 @@ class CompareToGalacticMass(Scene):self.play(Write(equals),Write(words),- OldLaggedStart(+ LaggedStartMap(Restore, black_holes,run_time=3)@@ -1374,7 +1374,7 @@ class CompareAlgorithmToPhysics(PiCreatureScene):target_mode="pondering",look_at_arg=left_rect,),- OldLaggedStart(+ LaggedStartMap(FadeInFrom, digits,lambda m: (m, LEFT),run_time=5,@@ -1491,7 +1491,7 @@ class NextVideo(Scene):self.play(Write(dots))self.wait()self.play(- OldLaggedStart(+ LaggedStartMap(FadeInFrom, mid_words,lambda m: (m, UP),lag_ratio=0.8,@@ -1507,11 +1507,11 @@ class NextVideo(Scene):ShowCreation(speech_bubble),Write(speech_bubble.content),randy.change, "maybe", friends[0].eyes,- OldLaggedStart(FadeInFromDown, friends),+ LaggedStartMap(FadeInFromDown, friends),videos.space_out_submobjects, 1.6,)self.play(- OldLaggedStart(+ LaggedStartMap(ApplyMethod, friends,lambda m: (m.change, "pondering"),run_time=1,diff --git a/old_projects/clacks/solution1.py b/old_projects/clacks/solution1.pyindex 06f538697..31da2019e 100644--- a/old_projects/clacks/solution1.py+++ b/old_projects/clacks/solution1.py@@ -363,7 +363,7 @@ class AskAboutFindingNewVelocities(Scene):))for group in label_groups:- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ShowCreation, group.rects,lag_ratio=0.8,run_time=1,@@ -693,7 +693,7 @@ class IntroduceVelocityPhaseSpace(AskAboutFindingNewVelocities):FadeOut(equations[1].highlighted_copy),run_time=0.75,)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(Indicate, v_terms,lag_ratio=0.75,rate_func=there_and_back,@@ -1475,7 +1475,7 @@ class AnalyzeCircleGeometry(CircleDiagramFromSlidingBlocks, MovingCameraScene):run_time=2,))self.wait()- self.play(OldLaggedStart(MoveToTarget, movers))+ self.play(LaggedStartMap(MoveToTarget, movers))self.wait()self.arcs_equation = movers@@ -1526,8 +1526,8 @@ class AnalyzeCircleGeometry(CircleDiagramFromSlidingBlocks, MovingCameraScene):"run_time": 3,}self.play(- OldLaggedStart(MoveToTarget, all_arcs, **kwargs),- OldLaggedStart(MoveToTarget, arc_counts, **kwargs),+ LaggedStartMap(MoveToTarget, all_arcs, **kwargs),+ LaggedStartMap(MoveToTarget, arc_counts, **kwargs),)self.arc_counts = arc_counts@@ -1582,7 +1582,7 @@ class AnalyzeCircleGeometry(CircleDiagramFromSlidingBlocks, MovingCameraScene):to_fade = VGroup(arc_counts, arcs, lines_to_fade)self.play(- OldLaggedStart(+ LaggedStartMap(FadeOut, VGroup(*to_fade.family_members_with_points())))@@ -1631,7 +1631,7 @@ class AnalyzeCircleGeometry(CircleDiagramFromSlidingBlocks, MovingCameraScene):FadeOut(self.center_lines_group),FadeOut(self.three_dots),)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyFunction, every_other_line,lambda line: (lambda l: l.scale(10 / l.get_length()).set_stroke(BLUE, 3),@@ -2224,7 +2224,7 @@ class ComputeThetaFor1e4(AnalyzeCircleGeometry):# Swap last twosm = movers.submobjectssm[-1], sm[-2] = sm[-2], sm[-1]- self.play(OldLaggedStart(+ self.play(LaggedStartMap(Transform, movers[:-1],lambda m: (m, m.target),lag_ratio=1,@@ -2272,8 +2272,8 @@ class ThetaChart(Scene):lines.set_stroke(WHITE, 1)self.play(- OldLaggedStart(FadeInFromDown, titles),- OldLaggedStart(ShowCreation, lines, lag_ratio=0.8),+ LaggedStartMap(FadeInFromDown, titles),+ LaggedStartMap(ShowCreation, lines, lag_ratio=0.8),)self.h_line = h_line@@ -2316,11 +2316,11 @@ class ThetaChart(Scene):h_lines.add(h_line)self.play(- OldLaggedStart(+ LaggedStartMap(FadeInFromDown,VGroup(*[em[:2] for em in entry_mobs]),),- OldLaggedStart(ShowCreation, h_lines[1:]),+ LaggedStartMap(ShowCreation, h_lines[1:]),lag_ratio=0.1,run_time=5,)@@ -2331,7 +2331,7 @@ class ThetaChart(Scene):def show_values(self):values = VGroup(*[em[2] for em in self.entry_mobs])for value in values:- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeIn, value,lag_ratio=0.1,run_time=0.5@@ -2923,7 +2923,7 @@ class ConservationLawSummary(Scene):self.add(energy_group, momentum_group)self.wait()self.play(- OldLaggedStart(+ LaggedStartMap(ShowCreationThenDestruction,red_energy_word),diff --git a/old_projects/clacks/solution2/mirror_scenes.py b/old_projects/clacks/solution2/mirror_scenes.pyindex 7c6363e1c..15a7e39f5 100644--- a/old_projects/clacks/solution2/mirror_scenes.py+++ b/old_projects/clacks/solution2/mirror_scenes.py@@ -563,7 +563,7 @@ class ReflectWorldThroughMirrorNew(MirrorScene):mob.become(mob.pre_world)mob.fade(1)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(Restore, new_worlds,lag_ratio=0.4,run_time=3@@ -580,7 +580,7 @@ class ReflectWorldThroughMirrorNew(MirrorScene):def blink_all_randys(self):randys = self.randys = VGroup(self.randy)randys.add(*[rw[-1] for rw in self.reflected_worlds])- self.play(OldLaggedStart(Blink, randys))+ self.play(LaggedStartMap(Blink, randys))def add_randy_updates(self):# Makes it run slower, but it's fun!@@ -911,7 +911,7 @@ class MirrorAndWiresOverlay(MirrorScene):self.play(FadeIn(diagram.rect),ShowCreation(diagram.mirror),- OldLaggedStart(ShowCreation, diagram.wires),+ LaggedStartMap(ShowCreation, diagram.wires),run_time=1)self.remove(diagram)diff --git a/old_projects/clacks/solution2/position_phase_space.py b/old_projects/clacks/solution2/position_phase_space.pyindex b87d190a5..e5c87acf8 100644--- a/old_projects/clacks/solution2/position_phase_space.py+++ b/old_projects/clacks/solution2/position_phase_space.py@@ -844,7 +844,7 @@ class EqualMassCase(PositionPhaseSpaceScene):def show_same_mass(self):blocks = self.blocks- self.play(OldLaggedStart(+ self.play(LaggedStartMap(Indicate, blocks,lag_ratio=0.8,run_time=1,@@ -1468,7 +1468,7 @@ class IntroduceVelocityVector(PositionPhaseSpaceScene, MovingCameraScene):ps_vect = self.ps_velocity_vectorblock_vectors = self.get_block_velocity_vectors(ps_vect)- self.play(OldLaggedStart(GrowArrow, block_vectors))+ self.play(LaggedStartMap(GrowArrow, block_vectors))self.play(Rotating(ps_vect,angle=TAU,@@ -1811,7 +1811,7 @@ class ShowMomentumConservation(IntroduceVelocityVector):self.block_vectors = self.get_block_velocity_vectors(self.ps_vect)self.play(GrowArrow(self.ps_vect),- OldLaggedStart(GrowArrow, self.block_vectors, run_time=1),+ LaggedStartMap(GrowArrow, self.block_vectors, run_time=1),)self.add(self.ps_vect, self.block_vectors)@@ -1867,7 +1867,7 @@ class ShowMomentumConservation(IntroduceVelocityVector):for eq, new_eq in zip(eqs_targets, new_eqs):new_eq.move_to(eq)- self.play(OldLaggedStart(MoveToTarget, eqs, lag_ratio=0.7))+ self.play(LaggedStartMap(MoveToTarget, eqs, lag_ratio=0.7))self.play(*[Transform(eq, new_eq,@@ -1927,7 +1927,7 @@ class ShowMomentumConservation(IntroduceVelocityVector):for mover, part in zip(movers, final_eq):mover.target = partself.play(- OldLaggedStart(+ LaggedStartMap(MoveToTarget, movers,path_arc=30 * DEGREES,lag_ratio=0.9@@ -2292,7 +2292,7 @@ class ShowMomentumConservation(IntroduceVelocityVector):arcs = VGroup(arc1, arc2)self.slide(0.5)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeInFromLarge, arcs,lag_ratio=0.75,))diff --git a/old_projects/clacks/solution2/simple_scenes.py b/old_projects/clacks/solution2/simple_scenes.pyindex 530c0c4ff..19993504a 100644--- a/old_projects/clacks/solution2/simple_scenes.py+++ b/old_projects/clacks/solution2/simple_scenes.py@@ -575,21 +575,21 @@ class TwoSolutionsWrapper(WrapperScene):self.add(big_rect, title, pis)self.play(- OldLaggedStart(+ LaggedStartMap(ShowCreation, screen_rects.copy().set_fill(opacity=0),lag_ratio=0.8),- OldLaggedStart(+ LaggedStartMap(FadeIn, screen_rects,lag_ratio=0.8),- OldLaggedStart(+ LaggedStartMap(ApplyMethod, pis,lambda pi: (pi.change, "pondering", screen_rects[0])),)self.play(Blink(random.choice(pis)))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyMethod, pis,lambda pi: (pi.change, "thinking", screen_rects[1])))diff --git a/old_projects/crypto.py b/old_projects/crypto.pyindex ab9fb0a70..9528879c7 100644--- a/old_projects/crypto.py+++ b/old_projects/crypto.py@@ -120,7 +120,7 @@ class AskQuestion(Scene):n_chars = len(word.strip())n_spaces = len(word) - n_charsself.play(- OldLaggedStart(FadeIn, part),+ LaggedStartMap(FadeIn, part),run_time = self.time_per_char * len(word),rate_func = squish_rate_func(smooth, 0, 0.5))@@ -299,7 +299,7 @@ class ListRecentCurrencies(Scene):self.play(*anims)dots = TexMobject("\\vdots")dots.next_to(logos, DOWN)- self.play(OldLaggedStart(FadeIn, dots, run_time = 1))+ self.play(LaggedStartMap(FadeIn, dots, run_time = 1))self.wait()class Hype(TeacherStudentsScene):@@ -503,7 +503,7 @@ class LedgerScene(PiCreatureScene):def animate_payment_addition(self, *args, **kwargs):line = self.add_payment_line_to_ledger(*args, **kwargs)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeIn,VGroup(*it.chain(*line)),run_time = 1@@ -797,7 +797,7 @@ class IntroduceLedgerSystem(LedgerScene):FadeIn(tally_up))self.play(- OldLaggedStart(FadeIn, results),+ LaggedStartMap(FadeIn, results),*[ApplyMethod(pi.change, "happy")for pi in creditors@@ -845,7 +845,7 @@ class InitialProtocol(Scene):for item in items:self.wait()- self.play(OldLaggedStart(FadeIn, item))+ self.play(LaggedStartMap(FadeIn, item))self.wait(2)def get_new_item(self, item_string):@@ -941,7 +941,7 @@ class IntroduceSignatures(LedgerScene):self.add_payment_line_to_ledger(*payment)for payment in self.payments])- self.play(OldLaggedStart(FadeIn, transactions))+ self.play(LaggedStartMap(FadeIn, transactions))self.wait()def add_signatures(self):@@ -986,7 +986,7 @@ class AskHowDigitalSignaturesArePossible(TeacherStudentsScene):)self.change_student_modes("pondering", "confused", "erm")self.play(Write(signature))- self.play(OldLaggedStart(FadeIn, bits, run_time = 1))+ self.play(LaggedStartMap(FadeIn, bits, run_time = 1))self.wait()self.play(ReplacementTransform(bits.copy(), bits_copy,@@ -1099,7 +1099,7 @@ class DescribeDigitalSignatures(LedgerScene):])self.play(ShowCreation(rects))- self.play(OldLaggedStart(DrawBorderThenFill, locks))+ self.play(LaggedStartMap(DrawBorderThenFill, locks))self.wait()self.private_key_rects = rects@@ -1142,7 +1142,7 @@ class DescribeDigitalSignatures(LedgerScene):self.play(FadeOut(self.title),- OldLaggedStart(FadeIn, documents, run_time = 1)+ LaggedStartMap(FadeIn, documents, run_time = 1))self.play(Write(signatures))self.wait()@@ -1460,7 +1460,7 @@ class IncludeTransactionNumber(LedgerScene):copies.next_to(line, DOWN, buff = MED_SMALL_BUFF)self.play(- OldLaggedStart(FadeIn, copies, run_time = 3),+ LaggedStartMap(FadeIn, copies, run_time = 3),self.bob.change, "conniving",)self.play(self.alice.change, "angry")@@ -1546,7 +1546,7 @@ class CharlieRacksUpDebt(SignedLedgerScene):for payment in self.payments])- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeIn, lines,run_time = 3,lag_ratio = 0.25@@ -1633,7 +1633,7 @@ class LedgerWithInitialBuyIn(SignedLedgerScene):money.move_to(corner)self.play(- OldLaggedStart(+ LaggedStartMap(ApplyMethod, moneys,lambda m : (m.restore,)),@@ -1665,7 +1665,7 @@ class LedgerWithInitialBuyIn(SignedLedgerScene):lines[-1].add(line)self.play(- OldLaggedStart(FadeIn, lines),+ LaggedStartMap(FadeIn, lines),*[ApplyMethod(pi.change, "thinking", self.ledger)for pi in self.pi_creatures@@ -1757,8 +1757,8 @@ class LedgerWithInitialBuyIn(SignedLedgerScene):FadeIn(balance))self.play(- OldLaggedStart(FadeIn, lines, run_time = 3),- OldLaggedStart(ShowCreation, arrows, run_time = 3),+ LaggedStartMap(FadeIn, lines, run_time = 3),+ LaggedStartMap(ShowCreation, arrows, run_time = 3),)self.wait()@@ -1852,7 +1852,7 @@ class RenameToLedgerDollars(LedgerScene):for payment in self.payments])- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeIn, lines,run_time = 4,lag_ratio = 0.3@@ -2126,7 +2126,7 @@ class TransitionToDistributedLedger(DistributedLedgerScene):])for payment in payments:- self.play(OldLaggedStart(FadeIn, payment, run_time = 1))+ self.play(LaggedStartMap(FadeIn, payment, run_time = 1))self.wait()def ask_who_controls_ledger(self):@@ -2449,9 +2449,9 @@ class ThisIsWellIntoTheWeeds(TeacherStudentsScene):)self.change_student_modes(*["pondering"]*3,- added_anims = [OldLaggedStart(FadeIn, lightbulb)]+ added_anims = [LaggedStartMap(FadeIn, lightbulb)])- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyMethod, lightbulb,lambda b : (b.set_color, YELLOW_A),rate_func = there_and_back@@ -2515,7 +2515,7 @@ class IntroduceSHA256(Scene):self.remove(digest)for brace, text in brace_text_pairs:if brace is digest_brace:- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeIn, digest,run_time = 4,lag_ratio = 0.05@@ -2529,7 +2529,7 @@ class IntroduceSHA256(Scene):self.play(Write(looks_random))self.wait(2)for mob in digest, message:- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyMethod, mob,lambda m : (m.set_color, YELLOW),rate_func = there_and_back,@@ -2736,7 +2736,7 @@ class IntroduceNonceOnTrasactions(LedgerScene):zeros_brace = Brace(zeros, UP)zeros_words = zeros_brace.get_text("30 zeros")- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeIn, VGroup(special_word, nonce_brace, nonce)))self.wait()@@ -2751,20 +2751,20 @@ class IntroduceNonceOnTrasactions(LedgerScene):ShowCreation(arrow),FadeIn(sha))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyMethod, decomposed_ledger,lambda m : (m.set_color, YELLOW),rate_func = there_and_back))point = VectorizedPoint(sha.get_center())point.set_fill(opacity = 1)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(Transform, decomposed_ledger.copy(),lambda m : (m, point),run_time = 1))bit_iter = iter(digest)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ReplacementTransform,VGroup(*[point.copy() for x in range(256)]),lambda m : (m, next(bit_iter)),@@ -2775,7 +2775,7 @@ class IntroduceNonceOnTrasactions(LedgerScene):GrowFromCenter(zeros_brace),Write(zeros_words, run_time = 1))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyMethod, zeros,lambda m : (m.set_color, YELLOW)))@@ -2974,17 +2974,17 @@ class IntroduceBlockChain(Scene):for block in blocks])- self.play(OldLaggedStart(FadeIn, blocks))+ self.play(LaggedStartMap(FadeIn, blocks))self.play(Write(blocks_word),- OldLaggedStart(+ LaggedStartMap(ShowCreation, arrows,run_time = 1,))self.wait()for group in all_payments, all_proofs_of_work:- self.play(OldLaggedStart(+ self.play(LaggedStartMap(Indicate, group,rate_func = there_and_back,scale_factor = 1.1,@@ -3044,7 +3044,7 @@ class IntroduceBlockChain(Scene):self.play(Write(digests))self.wait()for group in signatures, proofs_of_work:- self.play(OldLaggedStart(+ self.play(LaggedStartMap(Indicate, group,run_time = 2,rate_func = there_and_back,@@ -3324,7 +3324,7 @@ class FromBankToDecentralizedSystem(DistributedBlockChainScene):cross.set_stroke(width = 10)group = VGroup(bank, cross)- self.play(OldLaggedStart(DrawBorderThenFill, bank))+ self.play(LaggedStartMap(DrawBorderThenFill, bank))self.play(ShowCreation(cross))self.wait()self.play(@@ -3348,9 +3348,9 @@ class FromBankToDecentralizedSystem(DistributedBlockChainScene):center_chain.scale(2)center_chain.center()- self.play(OldLaggedStart(FadeIn, creatures, run_time = 1))+ self.play(LaggedStartMap(FadeIn, creatures, run_time = 1))self.play(- OldLaggedStart(FadeIn, center_chain.blocks, run_time = 1),+ LaggedStartMap(FadeIn, center_chain.blocks, run_time = 1),ShowCreation(center_chain.arrows),)self.wait()@@ -3441,7 +3441,7 @@ class IntroduceBlockCreator(DistributedBlockChainScene):everything.arrange(DOWN, buff = LARGE_BUFF)everything.to_edge(LEFT)- self.play(OldLaggedStart(FadeIn, everything))+ self.play(LaggedStartMap(FadeIn, everything))self.pi_creatures.add(*block_creators)self.wait()@@ -4077,7 +4077,7 @@ class DoubleSpendingAttack(DistributedBlockChainScene):self.charlie.change, "shruggie",self.you.change, "shruggie",)- self.play(OldLaggedStart(FadeIn, bubble))+ self.play(LaggedStartMap(FadeIn, bubble))self.play(self.bob.change, "confused", words)self.wait(2)@@ -4495,7 +4495,7 @@ class MainIdeas(Scene):self.add(title, h_line)for idea in ideas:- self.play(OldLaggedStart(FadeIn, idea))+ self.play(LaggedStartMap(FadeIn, idea))self.wait()class VariableProofOfWork(WhenToTrustANewBlock):@@ -4593,7 +4593,7 @@ class VariableProofOfWork(WhenToTrustANewBlock):everyone.to_corner(UP+LEFT)self.play(Transform(miner_block, target))- self.play(OldLaggedStart(FadeIn, copies))+ self.play(LaggedStartMap(FadeIn, copies))self.change_challenge(72)self.wait(2)@@ -4666,7 +4666,7 @@ class CompareBlockTimes(Scene):)self.wait()self.play(*[- OldLaggedStart(FadeIn, VGroup(*group[1:]))+ LaggedStartMap(FadeIn, VGroup(*group[1:]))for group in (examples, logos)])self.wait(2)@@ -4719,7 +4719,7 @@ class BlockRewards(Scene):footnote.scale(0.5)footnote.to_corner(DOWN+RIGHT)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeIn, rewards,run_time = 4,lag_ratio = 0.5@@ -4875,7 +4875,7 @@ class ShowBitcoinBlockSize(LedgerScene):GrowFromCenter(brace),Write(limit))- self.play(OldLaggedStart(FadeIn, payments))+ self.play(LaggedStartMap(FadeIn, payments))self.wait()####Visa@@ -4898,10 +4898,10 @@ class ShowBitcoinBlockSize(LedgerScene):visa = VGroup(visa_logo, rates)visa.to_corner(UP+RIGHT)- self.play(OldLaggedStart(DrawBorderThenFill, visa_logo))- self.play(OldLaggedStart(FadeIn, avg_rate))+ self.play(LaggedStartMap(DrawBorderThenFill, visa_logo))+ self.play(LaggedStartMap(FadeIn, avg_rate))self.wait()- self.play(OldLaggedStart(FadeIn, max_rate))+ self.play(LaggedStartMap(FadeIn, max_rate))self.wait(2)class CurrentAverageFees(Scene):@@ -4950,7 +4950,7 @@ class TopicsNotCovered(TeacherStudentsScene):self.change_student_modes("confused", "thinking","pondering",look_at_arg = topic,- added_anims = [OldLaggedStart(FadeIn, topic)]+ added_anims = [LaggedStartMap(FadeIn, topic)])self.wait()@@ -5175,7 +5175,7 @@ class ProtocolLabs(PiCreatureScene):self.play(DrawBorderThenFill(logo[0]),- OldLaggedStart(FadeIn, logo[1]),+ LaggedStartMap(FadeIn, logo[1]),morty.change, "raise_right_hand",)self.wait()diff --git a/old_projects/dandelin.py b/old_projects/dandelin.pyindex 13911c5f8..853a62755 100644--- a/old_projects/dandelin.py+++ b/old_projects/dandelin.py@@ -27,7 +27,7 @@ class LogoGeneration(LogoGenerationTemplate):run_time=3,),AnimationGroup(*[- OldLaggedStart(+ LaggedStartMap(Restore, layer,run_time=3,path_arc=180 * DEGREES,@@ -121,17 +121,17 @@ class SumOfIntegersProof(Scene):square.move_to(row, LEFT)row.fade(1)- self.play(OldLaggedStart(FadeInFromDown, equation[:-1]))+ self.play(LaggedStartMap(FadeInFromDown, equation[:-1]))self.wait()self.play(- OldLaggedStart(+ LaggedStartMap(MoveToTarget, numbers,path_arc=-90 * DEGREES,lag_ratio=1,run_time=1))- self.play(OldLaggedStart(Restore, rows))+ self.play(LaggedStartMap(Restore, rows))self.wait()self.play(ReplacementTransform(@@ -221,7 +221,7 @@ class MultipleDefinitionsOfAnEllipse(Scene):definition.saved_state = definition.copy()definition.saved_state.set_fill(LIGHT_GREY, 0.5)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeInFrom, definitions,lambda m: (m, RIGHT),run_time=4@@ -281,7 +281,7 @@ class StretchACircle(Scene):plane_circle_group.stretch, 2, 0,run_time=2,),- OldLaggedStart(+ LaggedStartMap(GrowArrow, arrows,run_time=1,lag_ratio=1@@ -367,8 +367,8 @@ class ShowArrayOfEccentricities(Scene):self.play(Write(name),- OldLaggedStart(GrowArrow, arrows),- OldLaggedStart(Restore, eccentricity_labels)+ LaggedStartMap(GrowArrow, arrows),+ LaggedStartMap(Restore, eccentricity_labels))self.wait()self.play(@@ -404,7 +404,7 @@ class ShowArrayOfEccentricities(Scene):[morty]))self.play(- OldLaggedStart(FadeOutAndShiftDown, group),+ LaggedStartMap(FadeOutAndShiftDown, group),circle.set_height, 5,circle.center,)@@ -755,7 +755,7 @@ class AskWhyAreTheyTheSame(TeacherStudentsScene):self.play(FadeOutAndShift(bubble),FadeOutAndShift(bubble.content),- OldLaggedStart(+ LaggedStartMap(FadeOutAndShift, self.students,lambda m: (m, 3 * DOWN),),@@ -787,7 +787,7 @@ class AskWhyAreTheyTheSame(TeacherStudentsScene):self.wait(2)self.play(baby_morty.change, "thinking",- OldLaggedStart(DrawBorderThenFill, bubble)+ LaggedStartMap(DrawBorderThenFill, bubble))self.play(ShowCreation(egg))self.wait(3)@@ -826,7 +826,7 @@ class TriangleOfEquivalences(Scene):arrows[2].move_to(rects[::2])arrows[1:].shift(0.5 * DOWN)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(DrawBorderThenFill, arrows,lag_ratio=0.7,run_time=3,@@ -893,7 +893,7 @@ class TangencyAnimation(Scene):ring.scale(0)ring.saved_state.set_stroke(width=0)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(Restore, rings,run_time=2,lag_ratio=0.7@@ -1028,7 +1028,7 @@ class ShowSegmentSplit(Scene):brace.scale(0)self.play(- OldLaggedStart(+ LaggedStartMap(Restore, braces,lag_ratio=0.7),@@ -1113,7 +1113,7 @@ class WriteConjecture(Scene):word.rotate(angle, about_point=ORIGIN)word.shift(line.get_center())- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeInFromDown,VGroup(title, equation),lag_ratio=0.7@@ -1220,7 +1220,7 @@ class QuickGeometryProof(Scene):everything = VGroup(*self.mobjects)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(GrowFromCenter, everything,lag_ratio=0.25,run_time=4@@ -1278,7 +1278,7 @@ class NameDandelin(Scene):self.play(Write(cmon_google, run_time=1))self.wait()- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeInFromDown, dandelions,lag_ratio=0.7,run_time=1@@ -1446,7 +1446,7 @@ class CreativeConstruction(PiCreatureScene):max_radius=15.0,delta_r=0.025,)- return OldLaggedStart(+ return LaggedStartMap(FadeIn, rings,rate_func=there_and_back,run_time=2,@@ -1508,12 +1508,12 @@ class LockhartQuote(Scene):self.wait(0.005 * len(word)**1.5)self.wait(2)self.play(- OldLaggedStart(+ LaggedStartMap(FadeOutAndShiftDown, quote,lag_ratio=0.2,run_time=5,),- OldLaggedStart(+ LaggedStartMap(FadeOutAndShiftDown, pictures,run_time=3,),@@ -1571,7 +1571,7 @@ class ShowApollonianCircles(Scene):equation.next_to(circles, UP)self.add(equation)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(DrawBorderThenFill, circles))self.wait()diff --git a/old_projects/div_curl.py b/old_projects/div_curl.pyindex 06ef63935..cbc0c3f02 100644--- a/old_projects/div_curl.py+++ b/old_projects/div_curl.py@@ -497,7 +497,7 @@ class Introduction(MovingCameraScene):self.add(div_vector_field)self.play(- OldLaggedStart(ShowPassingFlash, stream_lines),+ LaggedStartMap(ShowPassingFlash, stream_lines),FadeIn(div_title[0]),*list(map(GrowFromCenter, div_title[1])))@@ -581,7 +581,7 @@ class ShowWritingTrajectory(TeacherStudentsScene):self.get_student_changes(*["sassy"] * 3))self.play(- OldLaggedStart(+ LaggedStartMap(ApplyMethod, dashed_path,lambda m: (m.scale, 0),remover=True@@ -763,7 +763,7 @@ class CylinderModel(Scene):dot_update,exp_tex_update,exp_decimal_update,- OldLaggedStart(+ LaggedStartMap(FadeIn, sample_labels,remover=True,rate_func=there_and_back,@@ -1005,12 +1005,12 @@ class ElectricField(CylinderModel, MovingCameraScene):FadeOut(self.unit_circle),FadeOut(self.title),FadeOut(self.func_label),- OldLaggedStart(GrowArrow, vector_field)+ LaggedStartMap(GrowArrow, vector_field))self.remove_foreground_mobjects(self.title, self.func_label)self.wait()for group, vect in (protons, UP), (electrons, DOWN):- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyMethod, group,lambda m: (m.shift, (FRAME_HEIGHT + 1) * vect),run_time=3,@@ -1064,8 +1064,8 @@ class ElectricField(CylinderModel, MovingCameraScene):self.vector_field, unit_circle, protons, electrons)self.play(- OldLaggedStart(VFadeIn, protons),- OldLaggedStart(VFadeIn, electrons),+ LaggedStartMap(VFadeIn, protons),+ LaggedStartMap(VFadeIn, electrons),)self.play(self.camera.frame.scale, 0.7,@@ -1348,15 +1348,15 @@ class TopicsAndConnections(Scene):full_rect = FullScreenFadeRectangle()self.play(- OldLaggedStart(+ LaggedStartMap(ApplyMethod, dots,lambda d: (d.restore,)),- OldLaggedStart(Write, topics),+ LaggedStartMap(Write, topics),)self.wait()self.play(- OldLaggedStart(ShowCreation, connections),+ LaggedStartMap(ShowCreation, connections),Animation(topics),Animation(dots),)@@ -1435,9 +1435,9 @@ class IntroduceVectorField(Scene):dot.target = vectordots.add(dot)- self.play(OldLaggedStart(GrowFromCenter, dots))+ self.play(LaggedStartMap(GrowFromCenter, dots))self.wait()- self.play(OldLaggedStart(MoveToTarget, dots, remover=True))+ self.play(LaggedStartMap(MoveToTarget, dots, remover=True))self.add(vector_field)self.wait()@@ -1555,12 +1555,12 @@ class ShorteningLongVectors(IntroduceVectorField):self.add(adjusted)self.wait()- self.play(OldLaggedStart(+ self.play(LaggedStartMap(MoveToTarget, adjusted,run_time=3))self.wait()- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyMethod, adjusted,lambda m: (m.restore,),run_time=3@@ -1759,12 +1759,12 @@ class DefineDivergence(ChangingElectricField):vector_field = self.get_vector_field()self.play(- OldLaggedStart(GrowArrow, vector_field),- OldLaggedStart(GrowFromCenter, particles),+ LaggedStartMap(GrowArrow, vector_field),+ LaggedStartMap(GrowFromCenter, particles),run_time=4)self.wait()- self.play(OldLaggedStart(FadeOut, particles))+ self.play(LaggedStartMap(FadeOut, particles))def show_flow(self):stream_lines = StreamLines(@@ -1804,8 +1804,8 @@ class DefineDivergence(ChangingElectricField):self.play(self.vector_field.set_fill, {"opacity": 0.5},- OldLaggedStart(- OldLaggedStart, vector_circle_groups,+ LaggedStartMap(+ LaggedStartMap, vector_circle_groups,lambda vcg: (GrowArrow, vcg),),)@@ -2168,7 +2168,7 @@ class DivergenceAsNewFunction(Scene):def show_flow():stream_lines = get_stream_lines()random.shuffle(stream_lines.submobjects)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ShowCreationThenDestruction,stream_lines,remover=True@@ -2210,8 +2210,8 @@ class DivergenceAsNewFunction(Scene):])self.add_foreground_mobjects(div_tex)self.play(- OldLaggedStart(GrowArrow, vector_field),- OldLaggedStart(GrowArrow, vector_ring),+ LaggedStartMap(GrowArrow, vector_field),+ LaggedStartMap(GrowArrow, vector_ring),)self.add(vector_ring_update)self.wait()@@ -2376,7 +2376,7 @@ class IntroduceCurl(IntroduceVectorField):key=lambda v: v.get_length())- self.play(OldLaggedStart(GrowArrow, vector_field))+ self.play(LaggedStartMap(GrowArrow, vector_field))self.wait()def begin_flow(self):@@ -2467,7 +2467,7 @@ class ShearCurl(IntroduceCurl):vector_field.submobjects.key=sort(key=lambda a: a.get_length())- self.play(OldLaggedStart(GrowArrow, vector_field))+ self.play(LaggedStartMap(GrowArrow, vector_field))def comment_on_relevant_region(self):circle = Circle(color=WHITE, radius=0.75)@@ -2688,7 +2688,7 @@ class IllustrationUseVennDiagram(Scene):Animation(fluid_flow),Animation(ff_circle),)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeIn, examples,run_time=3,))@@ -2760,7 +2760,7 @@ class MaxwellsEquations(Scene):self.add(title)self.add(field_definitions)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeIn, equations,run_time=3,lag_range=0.4@@ -2956,7 +2956,7 @@ class IllustrateGaussMagnetic(IllustrateGaussLaw):vector_field.submobjects.sort(key=lambda a: -a1.get_length())- self.play(OldLaggedStart(GrowArrow, vector_field))+ self.play(LaggedStartMap(GrowArrow, vector_field))self.add_foreground_mobjects(vector_field, *self.foreground_mobjects)@@ -3038,13 +3038,13 @@ class ShowTwoPopulations(Scene):Write(word, run_time=1),)self.play(- OldLaggedStart(+ LaggedStartMap(ApplyMethod, examples,lambda m: (m.restore,)),- OldLaggedStart(FadeOut, words),+ LaggedStartMap(FadeOut, words),*[- OldLaggedStart(+ LaggedStartMap(FadeIn,group[1:],run_time=4,@@ -3341,7 +3341,7 @@ class PhaseSpaceOfPopulationModel(ShowTwoPopulations, PiCreatureScene, MovingCamShowCreation(rect))self.play(- OldLaggedStart(FadeIn, equations),+ LaggedStartMap(FadeIn, equations),randy.change, "confused", equations,VFadeIn(randy),)@@ -3375,7 +3375,7 @@ class PhaseSpaceOfPopulationModel(ShowTwoPopulations, PiCreatureScene, MovingCamdot_vector = get_dot_vector()self.play(- OldLaggedStart(GrowArrow, vector_field),+ LaggedStartMap(GrowArrow, vector_field),randy.change, "thinking", dot,Animation(self.differential_equation_group))@@ -4090,7 +4090,7 @@ class DivergenceTinyNudgesView(MovingCameraScene):self.play(Write(dot_product),- OldLaggedStart(MoveToTarget, copies)+ LaggedStartMap(MoveToTarget, copies))self.remove(copies)self.play(FadeIn(div_text))@@ -4166,7 +4166,7 @@ class DivergenceTinyNudgesView(MovingCameraScene):)self.play(all_step_vectors.set_fill, {"opacity": 0.5},- OldLaggedStart(+ LaggedStartMap(MoveToTarget, all_diff_vectors,run_time=3),@@ -4229,7 +4229,7 @@ class DivergenceTinyNudgesView(MovingCameraScene):))self.play(- OldLaggedStart(+ LaggedStartMap(MoveToTarget, all_diff_vectors,run_time=2),@@ -4272,7 +4272,7 @@ class DivergenceTinyNudgesView(MovingCameraScene):virtual_time=1,)random.shuffle(stream_lines.submobjects)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ShowPassingFlash,stream_lines,run_time=4,@@ -4460,7 +4460,7 @@ class BroughtToYouBy(PiCreatureScene):self.play(Write(so_words[0]),- OldLaggedStart(+ LaggedStartMap(DrawBorderThenFill, so_words[1],run_time=5),@@ -4482,7 +4482,7 @@ class BroughtToYouBy(PiCreatureScene):full_group,rate_func=running_start,))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(DrawBorderThenFill, patreon_logo))self.wait()@@ -4525,7 +4525,7 @@ class BroughtToYouBy(PiCreatureScene):randy.change, "thinking",morty.change, "thinking",)- self.play(OldLaggedStart(FadeOut, spiral, run_time=3))+ self.play(LaggedStartMap(FadeOut, spiral, run_time=3))self.wait(3)# Helpers@@ -4642,8 +4642,8 @@ class ThoughtsOnAds(Scene):)self.wait()self.play(- OldLaggedStart(FadeInFromDown, vcb),- OldLaggedStart(ShowCreation, vcb_arrows),+ LaggedStartMap(FadeInFromDown, vcb),+ LaggedStartMap(ShowCreation, vcb_arrows),ApplyMethod(knob.move_to, line.get_right(), DOWN,run_time=2@@ -4759,7 +4759,7 @@ class PeopleValueGraph(GraphScene):self.play(Write(reach_words))self.wait()self.play(- OldLaggedStart(DrawBorderThenFill, area),+ LaggedStartMap(DrawBorderThenFill, area),Animation(self.graph),Animation(self.axes),Write(area_words),diff --git a/old_projects/domino_play.py b/old_projects/domino_play.pyindex 025ff4a92..425316ebf 100644--- a/old_projects/domino_play.py+++ b/old_projects/domino_play.py@@ -598,7 +598,7 @@ class ContrastTwoGraphs(SimpleVelocityGraph):target = VGroup(*it.chain(*list(zip(sg_copy.dots, sg_copy.lines))))for m, t in zip(mover, target):m.target = t- self.play(OldLaggedStart(+ self.play(LaggedStartMap(MoveToTarget, mover,rate_func = lambda t : 0.3*wiggle(t),run_time = 3,@@ -671,8 +671,8 @@ class ContrastTwoGraphs(SimpleVelocityGraph):hardwood.next_to(felt, DOWN, LARGE_BUFF)self.play(- OldLaggedStart(FadeIn, felt),- OldLaggedStart(FadeIn, hardwood),+ LaggedStartMap(FadeIn, felt),+ LaggedStartMap(FadeIn, hardwood),run_time = 1)self.wait()@@ -693,7 +693,7 @@ class ContrastTwoGraphs(SimpleVelocityGraph):self.play(ShowCreation(rect1))for x in range(2):- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyMethod, dot_group1,lambda m : (m.scale_in_place, 0.5),rate_func = wiggle,@@ -703,7 +703,7 @@ class ContrastTwoGraphs(SimpleVelocityGraph):self.wait()self.play(ReplacementTransform(rect1, rect2))for x in range(2):- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyMethod, dot_group2,lambda m : (m.scale_in_place, 0.5),rate_func = wiggle,@@ -713,7 +713,7 @@ class ContrastTwoGraphs(SimpleVelocityGraph):self.wait()self.play(ReplacementTransform(rect1, rect3))for x in range(2):- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyMethod, dot_group3,lambda m : (m.scale_in_place, 0.5),rate_func = wiggle,diff --git a/old_projects/fc1.py b/old_projects/fc1.pyindex 3cfb65384..d0a24fb94 100644--- a/old_projects/fc1.py+++ b/old_projects/fc1.py@@ -28,7 +28,7 @@ class CrossingOneMillion(TeacherStudentsScene):rate_func=bezier([0, 0, 0, 1, 1, 1]),run_time=5,),- OldLaggedStart(+ LaggedStartMap(ApplyMethod, self.get_pi_creatures(),lambda m: (m.change, "hooray", number),rate_func=squish_rate_func(smooth, 0, 0.5),@@ -172,12 +172,12 @@ class AllFeaturedCreators(MortyPiCreatureScene):Write(title))self.wait()- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyMethod, dots,lambda m: (m.restore,)))self.play(- OldLaggedStart(FadeIn, rects, lag_ratio=0.7),+ LaggedStartMap(FadeIn, rects, lag_ratio=0.7),morty.change, "happy")self.add(creators, rects)diff --git a/old_projects/for_flammy.py b/old_projects/for_flammy.pyindex 2b84b7b84..710e4e0e3 100644--- a/old_projects/for_flammy.py+++ b/old_projects/for_flammy.py@@ -219,7 +219,7 @@ class SphereRings(SecondProof):rings.sort(lambda p: p[2])for x in range(8):- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyMethod, rings,lambda m: (m.set_fill, PINK, 0.5),rate_func=there_and_back,@@ -316,7 +316,7 @@ class IntegralSymbols(Scene):self.wait()self.play(GrowFromCenter(int_brace),- OldLaggedStart(+ LaggedStartMap(FadeInFrom, q_marks,lambda m: (m, UP),)diff --git a/old_projects/fourier.py b/old_projects/fourier.pyindex 4a71f3efb..6733b00b4 100644--- a/old_projects/fourier.py+++ b/old_projects/fourier.py@@ -127,7 +127,7 @@ class OtherContexts(PiCreatureScene):self.add(items)for item in items[1:]:self.play(- OldLaggedStart(+ LaggedStartMap(ApplyMethod, item,lambda m : (m.set_fill, {"opacity" : 1}),),@@ -646,7 +646,7 @@ class BreakApartSum(Scene):rect = SurroundingRectangle(pure_graphs, color = WHITE)self.play(ShowCreation(rect),- OldLaggedStart(+ LaggedStartMap(ApplyFunction, pure_graphs,lambda g : (lambda m : m.shift(SMALL_BUFF*UP).set_color(YELLOW), g),rate_func = wiggle@@ -1124,7 +1124,7 @@ class WrapCosineGraphAroundCircle(FourierMachineScene):self.play(ShowCreation(graph, run_time = 2, rate_func=linear))self.play(FadeIn(words),- OldLaggedStart(FadeIn, braces),+ LaggedStartMap(FadeIn, braces),*list(map(ShowCreation, v_lines)))self.wait()@@ -1227,7 +1227,7 @@ class WrapCosineGraphAroundCircle(FourierMachineScene):self.play(ShowCreation(bps_label.rect))self.play(FadeOut(bps_label.rect))- self.play(OldLaggedStart(FadeIn, braces, run_time = 3))+ self.play(LaggedStartMap(FadeIn, braces, run_time = 3))self.play(FadeOut(braces))self.play(ShowCreation(wps_label.rect))self.play(FadeOut(wps_label.rect))@@ -1252,7 +1252,7 @@ class WrapCosineGraphAroundCircle(FourierMachineScene):)self.wait()if count == 2:- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyFunction, v_lines,lambda mob : (lambda m : m.shift(0.25*UP).set_color(YELLOW),@@ -1430,7 +1430,7 @@ class DrawFrequencyPlot(WrapCosineGraphAroundCircle, PiCreatureScene):wps_label.move_to, self.circle_plane.get_top(),com_label.move_to, self.circle_plane, DOWN,)- self.play(OldLaggedStart(FadeIn, frequency_axes))+ self.play(LaggedStartMap(FadeIn, frequency_axes))self.wait()self.play(MoveAlongPath(self.center_of_mass_dot, flower_path,@@ -1733,7 +1733,7 @@ class ShowLowerFrequency(DrawFrequencyPlot):self.remove(start_graph)self.play(Write(bps_label),- OldLaggedStart(FadeIn, braces),+ LaggedStartMap(FadeIn, braces),*list(map(ShowCreation, v_lines)),run_time = 1)@@ -1904,7 +1904,7 @@ class ShowLinearity(DrawFrequencyPlot):FadeIn(axes_copy),ShowCreation(high_freq_graph),)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeIn, VGroup(high_freq_label, low_freq_label)))self.wait()@@ -1961,7 +1961,7 @@ class ShowLinearity(DrawFrequencyPlot):self.generate_fourier_dot_transform(fourier_graph)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeIn, VGroup(circle_plane, wps_label,frequency_axes, x_coord_label,@@ -2185,9 +2185,9 @@ class ShowCommutativeDiagram(ShowLinearity):flat_rect.target = spike_rectflat_rects.add(flat_rect)- self.play(OldLaggedStart(GrowFromCenter, flat_rects))+ self.play(LaggedStartMap(GrowFromCenter, flat_rects))self.wait()- self.play(OldLaggedStart(MoveToTarget, flat_rects))+ self.play(LaggedStartMap(MoveToTarget, flat_rects))self.wait()sum_spike_rects = VGroup(*[@@ -2197,7 +2197,7 @@ class ShowCommutativeDiagram(ShowLinearity):self.play(ReplacementTransform(flat_rects, sum_spike_rects))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(WiggleOutThenIn, sum_spike_rects,run_time = 1,lag_ratio = 0.7,@@ -3044,7 +3044,7 @@ class WriteComplexExponentialExpression(DrawFrequencyPlot):t_mob.shift(0.5*SMALL_BUFF*LEFT)self.play(MoveToTarget(t_mobs))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(Indicate, dots[1],rate_func = there_and_back,color = TEAL,@@ -3873,7 +3873,7 @@ class BoundsAtInfinity(SummarizeFormula):self.play(ReplacementTransform(self.get_time_interval(0, 0.01), time_interval))- self.play(OldLaggedStart(ShowCreation, bound_rects))+ self.play(LaggedStartMap(ShowCreation, bound_rects))self.wait()self.play(FadeOut(bound_rects))self.play(ReplacementTransform(bounds, inf_bounds))@@ -4049,7 +4049,7 @@ class SubscribeOrBinge(PiCreatureScene):for video, color in zip(videos, colors):video.set_color(color)videos.move_to(binge.get_bottom(), UP)- video_anim = OldLaggedStart(+ video_anim = LaggedStartMap(Succession, videos,lambda v : (FadeIn, v,diff --git a/old_projects/gradient.py b/old_projects/gradient.pyindex 8511c0921..62bdfe43f 100644--- a/old_projects/gradient.py+++ b/old_projects/gradient.py@@ -75,7 +75,7 @@ class ShowSimpleMultivariableFunction(Scene):inputs,many_inputs[:len(inputs)]),- OldLaggedStart(+ LaggedStartMap(FadeIn,many_inputs[len(inputs):]),@@ -88,7 +88,7 @@ class ShowSimpleMultivariableFunction(Scene):func_tex[0], alt_func_tex[0]),Write(alt_func_tex[1:3]),- OldLaggedStart(FadeOutAndShiftDown, many_inputs)+ LaggedStartMap(FadeOutAndShiftDown, many_inputs))self.wait(3)@@ -144,8 +144,8 @@ class ShowGradient(Scene):partials.set_fill(opacity=0)self.play(- OldLaggedStart(FadeIn, gradient),- OldLaggedStart(+ LaggedStartMap(FadeIn, gradient),+ LaggedStartMap(FadeIn, background_rects,rate_func=squish_rate_func(smooth, 0.5, 1))@@ -237,9 +237,9 @@ class TakePartialDerivatives(Scene):self.wait()# Label y as constant- self.play(OldLaggedStart(ShowCreation, ys.rects))+ self.play(LaggedStartMap(ShowCreation, ys.rects))self.play(- OldLaggedStart(GrowArrow, ys.arrows, lag_ratio=0.8),+ LaggedStartMap(GrowArrow, ys.arrows, lag_ratio=0.8),Write(treat_as_constant))self.wait(2)@@ -283,8 +283,8 @@ class TakePartialDerivatives(Scene):treat_as_constant.next_to(xs.arrows[1], UP, SMALL_BUFF)self.play(- OldLaggedStart(ShowCreation, xs.rects),- OldLaggedStart(GrowArrow, xs.arrows),+ LaggedStartMap(ShowCreation, xs.rects),+ LaggedStartMap(GrowArrow, xs.arrows),Write(treat_as_constant),lag_ratio=0.8)diff --git a/old_projects/highD.py b/old_projects/highD.pyindex cf7373564..a31d2ab97 100644--- a/old_projects/highD.py+++ b/old_projects/highD.py@@ -847,7 +847,7 @@ class DismissProjection(PiCreatureScene):for equation, sphere in zip(equations, spheres):self.play(Write(equation),- OldLaggedStart(ShowCreation, sphere),+ LaggedStartMap(ShowCreation, sphere),)self.wait()@@ -955,7 +955,7 @@ class DismissProjection(PiCreatureScene):tup.target.next_to(equation.target, DOWN)tup.target.set_color(WHITE)- self.play(OldLaggedStart(FadeOut, VGroup(*[+ self.play(LaggedStartMap(FadeOut, VGroup(*[self.equations, self.spheres,self.sphere_words, self.sphere_arrow,self.descriptor,@@ -1021,7 +1021,7 @@ class Introduce4DSliders(SliderScene):dial_copies = dials.copy()dials.set_fill(opacity = 0)- self.play(OldLaggedStart(FadeIn, self.sliders))+ self.play(LaggedStartMap(FadeIn, self.sliders))self.play(*[Transform(num, dial,@@ -1603,7 +1603,7 @@ class TwoDBoxExample(Scene):UP+RIGHT, SMALL_BUFF)- self.play(OldLaggedStart(ShowCreation, circles))+ self.play(LaggedStartMap(ShowCreation, circles))self.play(ShowCreation(radius),Write(r_equals_1)@@ -1733,7 +1733,7 @@ class ThreeDCubeCorners(Scene):group.to_edge(LEFT)self.play(Write(name, run_time = 2))- self.play(OldLaggedStart(FadeIn, coordinates, run_time = 3))+ self.play(LaggedStartMap(FadeIn, coordinates, run_time = 3))self.wait()class ShowDistanceFormula(TeacherStudentsScene):@@ -2166,14 +2166,14 @@ class TwoDBoxWithSliders(TwoDimensionalCase):self.wait()self.play(ShowCreation(crosses))self.play(- OldLaggedStart(MoveToTarget, new_words),+ LaggedStartMap(MoveToTarget, new_words),Animation(crosses))self.wait(3)#Return to original positiontarget_vector = np.array(2*[1-np.sqrt(0.5)])- self.play(OldLaggedStart(FadeOut, VGroup(*[+ self.play(LaggedStartMap(FadeOut, VGroup(*[ghost_dials,x_words, y_words,x_arrow, y_arrow,@@ -2277,7 +2277,7 @@ class ThreeDBoxExampleWithSliders(SliderScene):)self.play(- OldLaggedStart(FadeIn, sphere_name,),+ LaggedStartMap(FadeIn, sphere_name,),ShowCreation(arrow, rate_func = squish_rate_func(smooth, 0.7, 1)),run_time = 3)@@ -2313,7 +2313,7 @@ class ThreeDBoxExampleWithSliders(SliderScene):FadeOut(self.sphere_name),Transform(self.arrow, new_arrow),)- self.play(OldLaggedStart(FadeIn, re_words))+ self.play(LaggedStartMap(FadeIn, re_words))self.wait(2)self.re_words = re_words@@ -2387,7 +2387,7 @@ class ThreeDBoxExampleWithSliders(SliderScene):self.play(Animation(self.sliders),FadeOut(self.re_words),- OldLaggedStart(+ LaggedStartMap(ApplyMethod, all_re_ticks,lambda m : (m.shift, shift_vect))@@ -2459,7 +2459,7 @@ class FourDBoxExampleWithSliders(ThreeDBoxExampleWithSliders):coordinate_mobs.next_to(title, DOWN)self.play(Write(title))- self.play(OldLaggedStart(FadeIn, coordinate_mobs))+ self.play(LaggedStartMap(FadeIn, coordinate_mobs))self.wait()self.coordinate_mobs = coordinate_mobs@@ -2547,7 +2547,7 @@ class FourDBoxExampleWithSliders(ThreeDBoxExampleWithSliders):re_rects.add(rect)self.play(FadeIn(re_words))- self.play(OldLaggedStart(DrawBorderThenFill, re_rects, run_time = 3))+ self.play(LaggedStartMap(DrawBorderThenFill, re_rects, run_time = 3))self.wait(2)self.re_words = re_words@@ -2578,7 +2578,7 @@ class FourDBoxExampleWithSliders(ThreeDBoxExampleWithSliders):)self.wait(2)re_shift_vect = 0.5*self.sliders[0].unit_size*DOWN- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyMethod, self.re_rects,lambda m : (m.shift, re_shift_vect),path_arc = np.pi@@ -2610,7 +2610,7 @@ class FourDBoxExampleWithSliders(ThreeDBoxExampleWithSliders):brace_text.scale(0.8, about_point = brace_text.get_bottom())VGroup(brace, brace_text).set_color(RED)- self.play(OldLaggedStart(FadeIn, computation, run_time = 3))+ self.play(LaggedStartMap(FadeIn, computation, run_time = 3))self.play(GrowFromCenter(brace))self.play(Write(brace_text, run_time = 2))self.wait(16)@@ -2675,7 +2675,7 @@ class TwoDInnerSphereTouchingBox(TwoDBoxWithSliders, PiCreatureScene):self.play(big_inner_circle.move_to, self.circle)self.play(big_inner_circle.restore)self.wait()- self.play(OldLaggedStart(+ self.play(LaggedStartMap(DrawBorderThenFill, tangency_points,rate_func = double_smooth))@@ -2772,7 +2772,7 @@ class FiveDBoxExampleWithSliders(FourDBoxExampleWithSliders):ShowCreation(re_line),Write(re_words, run_time = 2))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(DrawBorderThenFill, re_rects,rate_func = double_smooth))@@ -2852,7 +2852,7 @@ class FiveDBoxExampleWithSliders(FourDBoxExampleWithSliders):self.play(Animation(self.sliders),- OldLaggedStart(+ LaggedStartMap(ApplyMethod, re_ticks,lambda m : (m.shift, shift_vect),path_arc = np.pi@@ -2961,7 +2961,7 @@ class TenDBoxExampleWithSliders(FiveDBoxExampleWithSliders):self.wind_down_ambient_movement()self.reset_dials(self.n_sliders*[target_x])self.play(ShowCreation(re_line))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(DrawBorderThenFill, re_rects,rate_func = double_smooth))@@ -2987,7 +2987,7 @@ class TenDBoxExampleWithSliders(FiveDBoxExampleWithSliders):self.play(Animation(self.sliders),- OldLaggedStart(+ LaggedStartMap(ApplyMethod, re_ticks,lambda m : (m.shift, shift_vect),path_arc = np.pi@@ -3131,12 +3131,12 @@ class TenDCornerIsVeryFarAway(TenDBoxExampleWithSliders):self.set_to_vector(np.zeros(10))self.play(- OldLaggedStart(+ LaggedStartMap(ApplyMethod, re_rects,lambda m : (m.restore,),lag_ratio = 0.3,),- OldLaggedStart(+ LaggedStartMap(ApplyMethod, self.sliders,lambda m : (m.set_value, 1),lag_ratio = 0.3,@@ -3285,7 +3285,7 @@ class FunHighDSpherePhenomena(Scene):items.next_to(h_line, DOWN)for item in items:- self.play(OldLaggedStart(FadeIn, item, run_time = 2))+ self.play(LaggedStartMap(FadeIn, item, run_time = 2))self.wait()class TODOBugOnSurface(TODOStub):@@ -3393,7 +3393,7 @@ class Skeptic(TeacherStudentsScene, SliderScene):for pi in self.students])- self.play(Animation(self.sliders), OldLaggedStart(+ self.play(Animation(self.sliders), LaggedStartMap(ApplyMethod, all_real_estate_ticks,lambda m : (m.shift, SMALL_BUFF*LEFT),rate_func = wiggle,@@ -3427,7 +3427,7 @@ class JustBecauseYouCantVisualize(Scene):phrase_mob.next_to(ORIGIN, UP)for part in phrase_mob:- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeIn, part,run_time = 0.05*len(part)))@@ -3514,7 +3514,7 @@ class Podcast(TeacherStudentsScene):q_and_a.next_to(self.teacher.get_corner(UP+LEFT), UP, LARGE_BUFF)self.play(- OldLaggedStart(+ LaggedStartMap(ApplyMethod, self.pi_creatures,lambda pi : (pi.change, "hooray", title)),diff --git a/old_projects/leibniz.py b/old_projects/leibniz.pyindex 678e49a3e..62ab15d6b 100644--- a/old_projects/leibniz.py+++ b/old_projects/leibniz.py@@ -945,7 +945,7 @@ class CountThroughRings(LatticePointScene):self.add_foreground_mobject(self.lattice_points)self.play(FadeIn(circles))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyMethod,circles,arg_creator = lambda m : (m.set_stroke, PINK, 4),@@ -2544,7 +2544,7 @@ class IntroduceRecipe(Scene):movers.add(mover)index += 1- self.play(OldLaggedStart(+ self.play(LaggedStartMap(MoveToTarget,movers,replace_mobject_with_target_in_scene = True@@ -3111,7 +3111,7 @@ class Show125CircleSimple(LatticePointScene):about_point = self.plane_center),ShowCreation(circle),- OldLaggedStart(+ LaggedStartMap(DrawBorderThenFill,dots,stroke_width = 4,@@ -3180,7 +3180,7 @@ class SummarizeCountingRule(Show125Circle):ShowCreation(circle),run_time = 2,)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(DrawBorderThenFill,dots,stroke_width = 4,@@ -3418,7 +3418,7 @@ class EffectOfPowersOfTwo(LatticePointScene):group = groups[0]self.add(group)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(DrawBorderThenFill, dots_list[0],stroke_width = 4,stroke_color = PINK@@ -3543,7 +3543,7 @@ class IntroduceChi(FactorizationPattern):for mob in [chis, arrows, numbers]])- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyMethod,numbers,lambda m : (m.shift, MED_SMALL_BUFF*UP),@@ -3636,7 +3636,7 @@ class IntroduceChi(FactorizationPattern):self.play(Write(labels),FadeIn(arrows, lag_ratio = 0.5),- OldLaggedStart(+ LaggedStartMap(DrawBorderThenFill, dots,stroke_width = 4,stroke_color = YELLOW@@ -4045,7 +4045,7 @@ class ExpandCountWith45(SummarizeCountingRule):FadeIn(rect),Write(divisor_sum, run_time = 2))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(MoveToTarget, prime_pairs,run_time = 4,lag_ratio = 0.25,@@ -4053,7 +4053,7 @@ class ExpandCountWith45(SummarizeCountingRule):self.remove(prime_pairs)product_mobs.set_color(YELLOW)self.wait(2)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyMethod,product_mobs,lambda m : (m.shift, MED_LARGE_BUFF*DOWN),@@ -4133,14 +4133,14 @@ class CountLatticePointsInBigCircle(LatticePointScene):radicals = self.get_radicals()self.play(- OldLaggedStart(FadeIn, rings),+ LaggedStartMap(FadeIn, rings),Animation(self.lattice_points),- OldLaggedStart(FadeIn, radicals),+ LaggedStartMap(FadeIn, radicals),run_time = 3)self.add_foreground_mobject(radicals)self.play(- OldLaggedStart(+ LaggedStartMap(ApplyMethod,dot_groups,lambda m : (m.set_stroke, PINK, 5),@@ -4196,7 +4196,7 @@ class CountLatticePointsInBigCircle(LatticePointScene):VGroup(self.circle, self.radius).scale_in_place, 2,rate_func=linear,),- OldLaggedStart(+ LaggedStartMap(DrawBorderThenFill,new_dots,stroke_width = 4,@@ -4262,7 +4262,7 @@ class AddUpGrid(Scene):row_lines[-2].get_left()[0]*RIGHT)- self.play(OldLaggedStart(ShowCreation, row_lines))+ self.play(LaggedStartMap(ShowCreation, row_lines))self.wait()self.row_lines = row_lines@@ -4302,7 +4302,7 @@ class AddUpGrid(Scene):chi_sums.add(chi_sum)radical.chi_sum = chi_sum- self.play(OldLaggedStart(+ self.play(LaggedStartMap(Write, chi_sums,run_time = 5,rate_func = lambda t : t,@@ -4755,7 +4755,7 @@ class Sponsorship(PiCreatureScene):self.play(morty.change_mode, "raise_right_hand",- OldLaggedStart(DrawBorderThenFill, logo, run_time = 3)+ LaggedStartMap(DrawBorderThenFill, logo, run_time = 3))self.wait()self.play(diff --git a/old_projects/lost_lecture.py b/old_projects/lost_lecture.pyindex f0bab45a0..c261f07a5 100644--- a/old_projects/lost_lecture.py+++ b/old_projects/lost_lecture.py@@ -194,7 +194,7 @@ class ShowEmergingEllipse(Scene):)self.wait()self.play(- OldLaggedStart(ShowCreation, shuffled_lines),+ LaggedStartMap(ShowCreation, shuffled_lines),Animation(VGroup(e_dot, circle)),FadeOut(eccentric_words))@@ -224,7 +224,7 @@ class ShowEmergingEllipse(Scene):Animation(ghost_line))self.play(- OldLaggedStart(MoveToTarget, lines, run_time=4),+ LaggedStartMap(MoveToTarget, lines, run_time=4),Animation(VGroup(e_dot, circle)))self.wait()@@ -408,7 +408,7 @@ class FeynmanFame(Scene):# As a physicistself.play(self.get_book_intro(books[0]))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(Write, feynman_diagram,run_time=4))@@ -416,7 +416,7 @@ class FeynmanFame(Scene):self.play(self.get_book_intro(books[1]),self.get_book_outro(books[0]),- OldLaggedStart(+ LaggedStartMap(ApplyMethod, fd_parts,lambda m: (m.scale, 0),run_time=1@@ -450,7 +450,7 @@ class FeynmanFame(Scene):)joke.move_to(objects)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(DrawBorderThenFill, objects,lag_ratio=0.75))@@ -466,7 +466,7 @@ class FeynmanFame(Scene):self.play(self.get_book_intro(books[2]),self.get_book_outro(books[1]),- OldLaggedStart(FadeOut, joke, run_time=1),+ LaggedStartMap(FadeOut, joke, run_time=1),ApplyMethod(feynman_smile.shift, FRAME_HEIGHT * DOWN,remover=True@@ -1023,7 +1023,7 @@ class FeynmanElementaryQuote(Scene):self.play(ShowWord(nothing))self.wait(0.2)nothing.sort(lambda p: -p[0])- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeOut, nothing,run_time=1))@@ -1133,7 +1133,7 @@ class TableOfContents(Scene):scale_factor = 1.2self.add(title)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeIn, items,run_time=1,lag_ratio=0.7,@@ -1228,7 +1228,7 @@ class ShowEllipseDefiningProperty(Scene):self.add_foreground_mobjects(push_pins, dot)self.add(dot_update)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeInFrom, push_pins,lambda m: (m, 2 * UP + LEFT),run_time=1,@@ -1487,11 +1487,11 @@ class GeometryProofLand(Scene):circle.target = letterself.play(- OldLaggedStart(MoveToTarget, circles),+ LaggedStartMap(MoveToTarget, circles),run_time=2)self.add(word_outlines, circles)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeIn, word_outlines,run_time=3,rate_func=there_and_back,@@ -1542,7 +1542,7 @@ class ProveEllipse(ShowEmergingEllipse, ShowEllipseDefiningProperty):self.add(ghost_lines, circle, lines, ep_dot)self.play(- OldLaggedStart(MoveToTarget, lines),+ LaggedStartMap(MoveToTarget, lines),Animation(ep_dot),)self.play(ShowCreation(ellipse))@@ -1593,7 +1593,7 @@ class ProveEllipse(ShowEmergingEllipse, ShowEllipseDefiningProperty):FadeInFromDown(labels[1]),GrowArrow(arrows[1]),)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ShowPassingFlash, ghost_lines_copy))self.wait()@@ -1722,7 +1722,7 @@ class ProveEllipse(ShowEmergingEllipse, ShowEllipseDefiningProperty):P_label.next_to(P_dot, UP, SMALL_BUFF)self.add_foreground_mobjects(self.ellipse)- self.play(OldLaggedStart(Restore, lines))+ self.play(LaggedStartMap(Restore, lines))self.play(FadeOut(to_fade),ghost_line.set_stroke, YELLOW, 3,@@ -2053,10 +2053,10 @@ class ProveEllipse(ShowEmergingEllipse, ShowEllipseDefiningProperty):line.generate_target()line.target.rotate(90 * DEGREES)self.play(- OldLaggedStart(FadeIn, ghost_lines),- OldLaggedStart(FadeIn, lines),+ LaggedStartMap(FadeIn, ghost_lines),+ LaggedStartMap(FadeIn, lines),)- self.play(OldLaggedStart(MoveToTarget, lines))+ self.play(LaggedStartMap(MoveToTarget, lines))self.wait()def show_orbiting_planet(self):@@ -2124,7 +2124,7 @@ class EndOfGeometryProofiness(GeometryProofLand):underline.match_width(orbital_mechanics)underline.next_to(orbital_mechanics, DOWN, SMALL_BUFF)- self.play(OldLaggedStart(FadeOutAndShiftDown, geometry_word))+ self.play(LaggedStartMap(FadeOutAndShiftDown, geometry_word))self.play(FadeInFromDown(orbital_mechanics))self.play(ShowCreation(underline))self.wait()@@ -2643,12 +2643,12 @@ class AngularMomentumArgument(KeplersSecondLaw):self.wait()foreground = VGroup(*self.get_mobjects())self.play(- OldLaggedStart(GrowArrow, vector_field),+ LaggedStartMap(GrowArrow, vector_field),Animation(foreground))for x in range(3):self.play(- OldLaggedStart(+ LaggedStartMap(ApplyFunction, vector_field,lambda mob: (lambda m: m.scale(1.1).set_fill(opacity=1), mob),rate_func=there_and_back,@@ -2847,7 +2847,7 @@ class IntroduceShapeOfVelocities(AskAboutEllipses, MovingCameraScene):moving_vector, moving_vector_animation = self.get_velocity_vector_and_update()- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ShowCreation, vectors,lag_ratio=0.2,run_time=3,@@ -2862,7 +2862,7 @@ class IntroduceShapeOfVelocities(AskAboutEllipses, MovingCameraScene):self.wait(10)vectors.set_fill(opacity=0.5)self.play(- OldLaggedStart(ShowCreation, vectors),+ LaggedStartMap(ShowCreation, vectors),Animation(moving_vector))self.wait(5)@@ -2910,7 +2910,7 @@ class IntroduceShapeOfVelocities(AskAboutEllipses, MovingCameraScene):frame.shift, frame_shift,run_time=2,),- OldLaggedStart(+ LaggedStartMap(MoveToTarget, vectors,run_time=4,),@@ -3119,7 +3119,7 @@ class ShowEqualAngleSlices(IntroduceShapeOfVelocities):*list(map(ShowCreation, lines)))self.play(*[- OldLaggedStart(+ LaggedStartMap(ApplyMethod, fader,lambda m: (m.set_fill, {"opacity": 1}),**kwargs@@ -3485,8 +3485,8 @@ class ShowEqualAngleSlices(IntroduceShapeOfVelocities):self.add(self.orbit)self.wait()self.play(- OldLaggedStart(ShowCreation, external_angle_lines),- OldLaggedStart(ShowCreation, external_angle_arcs),+ LaggedStartMap(ShowCreation, external_angle_lines),+ LaggedStartMap(ShowCreation, external_angle_arcs),Animation(difference_vectors),)self.add_foreground_mobjects(difference_vectors)@@ -3547,7 +3547,7 @@ class PonderOverOffCenterDiagram(PiCreatureScene):words.next_to(rect.get_top(), DOWN)self.play(- OldLaggedStart(GrowFromCenter, velocity_diagram),+ LaggedStartMap(GrowFromCenter, velocity_diagram),randy.change, "pondering",morty.change, "confused",)@@ -3677,7 +3677,7 @@ class UseVelocityDiagramToDeduceCurve(ShowEqualAngleSlices):self.play(ApplyWave(ellipse))self.play(*list(map(GrowArrow, vectors)))self.play(- OldLaggedStart(+ LaggedStartMap(MoveToTarget, vectors,lag_ratio=1,run_time=2@@ -3862,7 +3862,7 @@ class UseVelocityDiagramToDeduceCurve(ShowEqualAngleSlices):)self.play(- OldLaggedStart(MoveToTarget, vectors),+ LaggedStartMap(MoveToTarget, vectors),highlighted_vector.scale, 0,{"about_point": root_dot.get_center()},Animation(highlighted_vector),@@ -3873,7 +3873,7 @@ class UseVelocityDiagramToDeduceCurve(ShowEqualAngleSlices):)self.remove(vectors, highlighted_vector)self.play(- OldLaggedStart(ShowCreation, lines),+ LaggedStartMap(ShowCreation, lines),ShowCreation(highlighted_line),Animation(highlighted_vector),)@@ -4017,7 +4017,7 @@ class UseVelocityDiagramToDeduceCurve(ShowEqualAngleSlices):self.add(ghost_lines)self.play(- OldLaggedStart(+ LaggedStartMap(MoveToTarget, lines,lag_ratio=0.1,run_time=8,@@ -4144,7 +4144,7 @@ class ShowSunVectorField(Scene):vector.target.set_stroke(YELLOW, 0.5)for x in range(3):- self.play(OldLaggedStart(+ self.play(LaggedStartMap(MoveToTarget, vector_field,rate_func=there_and_back,lag_ratio=0.5,diff --git a/old_projects/mug.py b/old_projects/mug.pyindex 16704b76b..479632435 100644--- a/old_projects/mug.py+++ b/old_projects/mug.py@@ -18,7 +18,7 @@ class HappyHolidays(TeacherStudentsScene):look_at_arg = FRAME_Y_RADIUS*UP,added_anims = [self.teacher.change, "hooray"])- self.play(OldLaggedStart(+ self.play(LaggedStartMap(DrawBorderThenFill, hats), Animation(self.pi_creatures))self.change_student_modes(@@ -65,7 +65,7 @@ class HappyHolidays(TeacherStudentsScene):mob, x_start = 2*random.random()*FRAME_X_RADIUS - FRAME_X_RADIUS,**kwargs)- snowflake_spirils = OldLaggedStart(+ snowflake_spirils = LaggedStartMap(random_confetti_spiral, snowflakes,run_time = 10,rate_func = lambda x : x,@@ -199,7 +199,7 @@ class UtilitiesPuzzleScene(Scene):mob.target = Dot(color = mob.get_color())mob.target.scale(2)mob.target.move_to(mob)- self.play(OldLaggedStart(MoveToTarget, group, run_time = run_time))+ self.play(LaggedStartMap(MoveToTarget, group, run_time = run_time))class PauseIt(PiCreatureScene):def construct(self):@@ -232,10 +232,10 @@ class AboutToyPuzzles(UtilitiesPuzzleScene, TeacherStudentsScene, ThreeDScene):run_time = 2,),FadeIn(houses[1]),- OldLaggedStart(DrawBorderThenFill, utilities, run_time = 2)+ LaggedStartMap(DrawBorderThenFill, utilities, run_time = 2))self.play(- OldLaggedStart(+ LaggedStartMap(ShowCreation, lines,run_time = 3),@@ -326,7 +326,7 @@ class AboutToyPuzzles(UtilitiesPuzzleScene, TeacherStudentsScene, ThreeDScene):everything.next_to, self.teacher, UP+LEFT,self.teacher.restore,self.teacher.change, "raise_right_hand", UP+LEFT,- OldLaggedStart(FadeIn, self.students)+ LaggedStartMap(FadeIn, self.students))self.change_student_modes(*["pondering"]*3, look_at_arg = everything@@ -360,14 +360,14 @@ class ThisPuzzleIsHard(UtilitiesPuzzleScene, PiCreatureScene):self.add(try_it)self.play(Animation(try_it))self.play(- OldLaggedStart(DrawBorderThenFill, houses),- OldLaggedStart(GrowFromCenter, utilities),+ LaggedStartMap(DrawBorderThenFill, houses),+ LaggedStartMap(GrowFromCenter, utilities),try_it.set_width, house.get_width(),try_it.fade, 1,try_it.move_to, house,self.pi_creature.change, "happy",)- self.play(OldLaggedStart(FadeIn, puzzle_words))+ self.play(LaggedStartMap(FadeIn, puzzle_words))self.add_foreground_mobjects(self.objects)self.set_variables_as_attrs(puzzle_words)@@ -439,7 +439,7 @@ class ThisPuzzleIsHard(UtilitiesPuzzleScene, PiCreatureScene):for line_set, mode in zip(line_sets, modes):good_lines = VGroup(*line_set[:-2])bad_lines = line_set[-2:]- self.play(OldLaggedStart(ShowCreation, good_lines))+ self.play(LaggedStartMap(ShowCreation, good_lines))for bl in bad_lines:self.play(ShowCreation(@@ -453,7 +453,7 @@ class ThisPuzzleIsHard(UtilitiesPuzzleScene, PiCreatureScene):bl, rate_func = lambda t : smooth(1-t),))self.remove(bl)- self.play(OldLaggedStart(FadeOut, good_lines))+ self.play(LaggedStartMap(FadeOut, good_lines))def ask_meta_puzzle(self):randy = self.pi_creature@@ -484,7 +484,7 @@ class ThisPuzzleIsHard(UtilitiesPuzzleScene, PiCreatureScene):straight_lines = self.get_straight_lines()almost_solution_lines = self.get_almost_solution_lines()- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ShowCreation, straight_lines,run_time = 2,lag_ratio = 0.8@@ -534,10 +534,10 @@ class IntroduceGraph(PiCreatureScene):color = WHITE)- self.play(OldLaggedStart(GrowFromCenter, pi_creatures))+ self.play(LaggedStartMap(GrowFromCenter, pi_creatures))self.play(- OldLaggedStart(ShowCreation, lines),- OldLaggedStart(+ LaggedStartMap(ShowCreation, lines),+ LaggedStartMap(ApplyMethod, pi_creatures,lambda pi : (pi.change, "pondering", lines))@@ -554,7 +554,7 @@ class IntroduceGraph(PiCreatureScene):FadeIn(vertices_word),)self.wait()- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyMethod, lines,lambda l : (l.rotate_in_place, np.pi/12),rate_func = wiggle@@ -612,10 +612,10 @@ class IsK33Planar(UtilitiesPuzzleScene):self.add(question)self.convert_objects_to_dots()- self.play(OldLaggedStart(ShowCreation, straight_lines))+ self.play(LaggedStartMap(ShowCreation, straight_lines))self.play(GrowFromCenter(brace),- OldLaggedStart(FadeIn, fancy_name),+ LaggedStartMap(FadeIn, fancy_name),)self.play(ReplacementTransform(straight_lines, almost_solution_lines,@@ -684,7 +684,7 @@ class TwoKindsOfViewers(PiCreatureScene, UtilitiesPuzzleScene):arrow = Arrow(eulers, objects, color = WHITE)self.play(GrowArrow(arrow),- OldLaggedStart(DrawBorderThenFill, VGroup(*it.chain(*objects)))+ LaggedStartMap(DrawBorderThenFill, VGroup(*it.chain(*objects))))self.wait()self.play(@@ -713,7 +713,7 @@ class IntroduceRegions(UtilitiesPuzzleScene):front_regions = VGroup(*regions[1:])self.convert_objects_to_dots(run_time = 0)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ShowCreation, lines,run_time = 3,))@@ -868,7 +868,7 @@ class AskAboutRegions(IntroduceRegions):self.add_foreground_mobjects(lines, objects)self.wait()self.play(MoveToTarget(front_regions))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyMethod, front_regions,lambda m : (m.rotate_in_place, np.pi/12),rate_func = wiggle,@@ -923,7 +923,7 @@ class AskAboutRegions(IntroduceRegions):def show_lines(line_group):lg_copy = line_group.copy()lg_copy.set_stroke(WHITE, 6)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeIn, lg_copy,run_time = 3,rate_func = there_and_back,@@ -1094,7 +1094,7 @@ class LightUpNodes(IntroduceRegions):self.play(*self.get_lit_vertex_animations(lit_vertex))self.play(FadeIn(dim_word),- OldLaggedStart(GrowArrow, dim_arrows)+ LaggedStartMap(GrowArrow, dim_arrows))self.wait()self.play(*list(map(FadeOut, [@@ -1218,7 +1218,7 @@ class LightUpNodes(IntroduceRegions):lines.move_to(vertex)random.shuffle(lines.submobjects)return [- OldLaggedStart(+ LaggedStartMap(ApplyMethod, lines,lambda l : (l.set_stroke, YELLOW, 4),rate_func = squish_rate_func(there_and_back, *squish_range),@@ -1337,7 +1337,7 @@ class ConcludeFiveRegions(LightUpNodes):line_sets.target.to_edge(RIGHT)for lines in line_sets:- self.play(OldLaggedStart(ShowCreation, lines, run_time = 1))+ self.play(LaggedStartMap(ShowCreation, lines, run_time = 1))self.play(MoveToTarget(lines))self.wait()@@ -1536,12 +1536,12 @@ class FiveRegionsFourEdgesEachGraph(Scene):self.play(FadeIn(words[0]),- OldLaggedStart(FadeIn, squares, run_time = 1.5)+ LaggedStartMap(FadeIn, squares, run_time = 1.5))self.play(FadeIn(words[1]),- OldLaggedStart(ShowCreation, all_edges),- OldLaggedStart(GrowFromCenter, all_vertices),+ LaggedStartMap(ShowCreation, all_edges),+ LaggedStartMap(GrowFromCenter, all_vertices),)self.wait()@@ -1610,7 +1610,7 @@ class FiveRegionsFourEdgesEachGraph(Scene):rate_func = squish_rate_func(smooth, 0.7, 1),run_time = 3,),- OldLaggedStart(+ LaggedStartMap(MoveToTarget, all_movers,run_time = 3,replace_mobject_with_target_in_scene = True,@@ -1944,7 +1944,7 @@ class QuestionWrapper(Scene):self.play(ShowCreation(screen_rect))self.wait()for word in question:- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeIn, word,run_time = 0.05*len(word)))diff --git a/old_projects/mvcr.py b/old_projects/mvcr.pyindex 19d7e28cd..f3fe3329a 100644--- a/old_projects/mvcr.py+++ b/old_projects/mvcr.py@@ -378,12 +378,12 @@ class ComputationalNetwork(MovingCameraScene):self.wait()self.play(- OldLaggedStart(FadeIn, partial_term_rects),+ LaggedStartMap(FadeIn, partial_term_rects),Animation(derivatives))self.wait()self.play(- OldLaggedStart(FadeOut, partial_term_rects),+ LaggedStartMap(FadeOut, partial_term_rects),Animation(derivatives))@@ -425,7 +425,7 @@ class ComputationalNetwork(MovingCameraScene):self.play(Write(rhs[::3]),- OldLaggedStart(MoveToTarget, derivatives)+ LaggedStartMap(MoveToTarget, derivatives))self.wait()@@ -688,7 +688,7 @@ class ComputationalNetwork(MovingCameraScene):result = TexMobject("=", "32", "+", "0")result.next_to(rhs, DOWN, aligned_edge=LEFT)- self.play(OldLaggedStart(Write, value_labels))+ self.play(LaggedStartMap(Write, value_labels))self.wait()self.play(ReplacementTransform(full_derivative.copy(), rhs,diff --git a/old_projects/name_animation.py b/old_projects/name_animation.pyindex 1e6ac6761..ef8ae3fc7 100644--- a/old_projects/name_animation.py+++ b/old_projects/name_animation.py@@ -45,7 +45,7 @@ class NameAnimationScene(Scene):times_n_label.to_edge(UP)self.play(- OldLaggedStart(FadeIn, name_mob, run_time=3),+ LaggedStartMap(FadeIn, name_mob, run_time=3),ApplyMethod(randy.change, "pondering", pos2, run_time=1),FadeIn(times_n_label))diff --git a/old_projects/nn/part1.py b/old_projects/nn/part1.pyindex 54477e305..62d70d62a 100644--- a/old_projects/nn/part1.py+++ b/old_projects/nn/part1.py@@ -357,11 +357,11 @@ class ExampleThrees(PiCreatureScene):self.play(FadeIn(three_mob[0]),- OldLaggedStart(FadeIn, three_mob[1])+ LaggedStartMap(FadeIn, three_mob[1]))self.wait()self.play(- OldLaggedStart(+ LaggedStartMap(DrawBorderThenFill, three_mob_copy,run_time = 3,stroke_color = WHITE,@@ -577,13 +577,13 @@ class WriteAProgram(Scene):choices.next_to(arrow, RIGHT)self.play(- OldLaggedStart(DrawBorderThenFill, three),+ LaggedStartMap(DrawBorderThenFill, three),ShowCreation(three_rect))self.play(Write(numbers))self.play(ShowCreation(arrow),- OldLaggedStart(FadeIn, choices),+ LaggedStartMap(FadeIn, choices),)rect = SurroundingRectangle(choices[0], buff = SMALL_BUFF)@@ -1146,7 +1146,7 @@ class IntroduceEachLayer(PreviewMNistNetwork):))- self.play(OldLaggedStart(FadeIn, numbers))+ self.play(LaggedStartMap(FadeIn, numbers))self.play(MoveToTarget(example_neuron),MoveToTarget(example_num)@@ -1229,7 +1229,7 @@ class IntroduceEachLayer(PreviewMNistNetwork):self.wait()for edge_group, layer in zip(network_mob.edge_groups, network_mob.layers[1:]):self.play(- OldLaggedStart(FadeIn, layer, run_time = 1),+ LaggedStartMap(FadeIn, layer, run_time = 1),ShowCreation(edge_group),)self.wait()@@ -1270,7 +1270,7 @@ class IntroduceEachLayer(PreviewMNistNetwork):)self.play(ShowCreation(rect))- self.play(OldLaggedStart(FadeIn, labels))+ self.play(LaggedStartMap(FadeIn, labels))self.wait()self.play(MoveToTarget(neuron),@@ -1344,7 +1344,7 @@ class DiscussChoiceForHiddenLayers(TeacherStudentsScene):for words in two_words, sixteen_words:words.next_to(rects, UP)- neurons_anim = OldLaggedStart(+ neurons_anim = LaggedStartMap(Indicate,VGroup(*it.chain(*[layer.neurons for layer in layers])),rate_func = there_and_back,@@ -1466,7 +1466,7 @@ class AskAboutLayers(PreviewMNistNetwork):self.play(Write(question, run_time = 1),- OldLaggedStart(+ LaggedStartMap(GrowFromPoint, arrows,lambda a : (a, a.get_start()),run_time = 2@@ -1615,7 +1615,7 @@ class BreakUpMacroPatterns(IntroduceEachLayer):self.play(ReplacementTransform(self.right_line.copy(), right_line))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeIn, VGroup(*equation[3:])))self.wait(2)@@ -1699,7 +1699,7 @@ class BreakUpMacroPatterns(IntroduceEachLayer):edge_group = self.network_mob.edge_groups[-1].copy()edge_group.set_stroke(YELLOW, 4)for x in range(3):- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ShowCreationThenDestruction, edge_group,run_time = 3))@@ -1808,7 +1808,7 @@ class BreakUpMicroPatterns(BreakUpMacroPatterns):)self.play(Blink(randy))self.wait()- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyMethod, edges,lambda e : (e.restore,),run_time = 4@@ -1856,10 +1856,10 @@ class BreakUpMicroPatterns(BreakUpMacroPatterns):randy.change, "hesitant", line)self.play(Blink(randy))- self.play(OldLaggedStart(FadeIn, digits))+ self.play(LaggedStartMap(FadeIn, digits))self.wait()self.play(- OldLaggedStart(FadeIn, Group(*equation[1:])),+ LaggedStartMap(FadeIn, Group(*equation[1:])),randy.change, "pondering", equation)self.wait(3)@@ -2161,12 +2161,12 @@ class ManyTasksBreakDownLikeThis(TeacherStudentsScene):self.wait()self.play(GrowFromPoint(arrows[1], arrows[1].get_start()),- OldLaggedStart(FadeIn, syllables, run_time = 1)+ LaggedStartMap(FadeIn, syllables, run_time = 1))self.wait()self.play(GrowFromPoint(arrows[2], arrows[2].get_start()),- OldLaggedStart(FadeIn, word, run_time = 1)+ LaggedStartMap(FadeIn, word, run_time = 1))self.wait()@@ -2345,8 +2345,8 @@ class IntroduceWeights(IntroduceEachLayer):GrowFromPoint(arrow, arrow.get_start()),pixels_group.set_height, 3,pixels_group.to_edge, RIGHT,- OldLaggedStart(FadeIn, p_labels),- OldLaggedStart(FadeIn, decimals),+ LaggedStartMap(FadeIn, p_labels),+ LaggedStartMap(FadeIn, decimals),)self.wait()self.play(@@ -2404,7 +2404,7 @@ class IntroduceWeights(IntroduceEachLayer):for decimal, r in zip(decimals, random_numbers)])- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyMethod, edges,lambda m : (m.rotate_in_place, np.pi/24),rate_func = wiggle,@@ -2916,7 +2916,7 @@ class IncludeBias(IntroduceWeights):weight_grid = self.weight_gridbias_name = self.bias_name- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyMethod, weight_grid,lambda p : (p.set_fill,random.choice([GREEN, GREEN, RED]),@@ -3043,13 +3043,13 @@ class ShowRemainingNetwork(IntroduceWeights):)last_edges = edgesself.play(- OldLaggedStart(+ LaggedStartMap(ShowCreation, VGroup(*[n.edges_in for n in neurons[7:]]),run_time = 3,),- OldLaggedStart(+ LaggedStartMap(FadeIn, VGroup(*neurons[7:]),run_time = 3,),@@ -3074,7 +3074,7 @@ class ShowRemainingNetwork(IntroduceWeights):self.play(FadeIn(words),- OldLaggedStart(+ LaggedStartMap(GrowArrow, arrows,run_time = 3,lag_ratio = 0.3,@@ -3109,7 +3109,7 @@ class ShowRemainingNetwork(IntroduceWeights):FadeOut(bb1),ReplacementTransform(bb2, bias_count[1]),FadeOut(bb3),- OldLaggedStart(FadeOut, bias_arrows)+ LaggedStartMap(FadeOut, bias_arrows))self.wait()@@ -3150,12 +3150,12 @@ class ShowRemainingNetwork(IntroduceWeights):MoveToTarget(bias_count),Write(added_weights, run_time = 1),Write(added_biases, run_time = 1),- OldLaggedStart(+ LaggedStartMap(ShowCreation, edges,run_time = 4,lag_ratio = 0.3,),- OldLaggedStart(+ LaggedStartMap(FadeIn, neurons,run_time = 4,lag_ratio = 0.3,@@ -3212,7 +3212,7 @@ class ShowRemainingNetwork(IntroduceWeights):width = 3*random.random()**7)self.play(- OldLaggedStart(+ LaggedStartMap(MoveToTarget, edges,lag_ratio = 0.6,run_time = 2,@@ -3528,7 +3528,7 @@ class IntroduceWeightMatrix(NetworkScene):pre_brackets.set_fill(opacity = 0)self.play(FocusOn(self.a_labels[0]))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(Indicate, self.a_labels,rate_func = there_and_back,run_time = 1@@ -3540,7 +3540,7 @@ class IntroduceWeightMatrix(NetworkScene):)self.wait()self.play(*[- OldLaggedStart(Indicate, mob, rate_func = there_and_back)+ LaggedStartMap(Indicate, mob, rate_func = there_and_back)for mob in (a_labels, a_labels_in_sum)])self.wait()@@ -3612,7 +3612,7 @@ class IntroduceWeightMatrix(NetworkScene):self.play(ShowCreation(rect))for x in range(2):- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ShowCreationThenDestruction, edges,lag_ratio = 0.8))@@ -3663,7 +3663,7 @@ class IntroduceWeightMatrix(NetworkScene):VGroup(top_row_rect, column_rect).copy(),result_terms[0]))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeIn, VGroup(*result_terms[1:])))self.wait(2)@@ -3690,7 +3690,7 @@ class IntroduceWeightMatrix(NetworkScene):rowk = self.lower_matrix_rows[-1]def show_edges(neuron):- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ShowCreationThenDestruction,neuron.edges_in.copy().set_stroke(GREEN, 5),lag_ratio = 0.7,@@ -3754,7 +3754,7 @@ class IntroduceWeightMatrix(NetworkScene):Transform(self.bias[1].copy(), b_column[0]),run_time = 1)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeIn, VGroup(*b_column[1:])))self.wait()@@ -4051,7 +4051,7 @@ class NeuronIsFunction(MoreHonestMNistNetworkPreview):FadeOut(self.network_mob),*list(map(Animation, [neuron, edges, prev_layer])))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ShowCreationThenDestruction,edges.copy().set_stroke(YELLOW, 4),))@@ -4277,7 +4277,7 @@ class NextVideo(MoreHonestMNistNetworkPreview, PiCreatureScene):video.move_to(pair, LEFT)pair.target = video- self.play(OldLaggedStart(+ self.play(LaggedStartMap(MoveToTarget, neuron_pairs,run_time = 3))diff --git a/old_projects/nn/part2.py b/old_projects/nn/part2.pyindex 766ec3a36..397af84ba 100644--- a/old_projects/nn/part2.py+++ b/old_projects/nn/part2.py@@ -203,7 +203,7 @@ class PreviewLearning(NetworkScene):]all_edges = VGroup(*it.chain(*network_mob.edge_groups))run_time = kwargs.get("run_time", self.default_activate_run_time)- edge_animation = OldLaggedStart(+ edge_animation = LaggedStartMap(ShowCreationThenDestruction,all_edges.copy().set_fill(YELLOW),run_time = run_time,@@ -312,7 +312,7 @@ class PreviewLearning(NetworkScene):def get_edge_animation(self):edges = VGroup(*it.chain(*self.network_mob.edge_groups))- return OldLaggedStart(+ return LaggedStartMap(ApplyFunction, edges,lambda mob : (lambda m : m.rotate_in_place(np.pi/12).set_color(YELLOW),@@ -363,8 +363,8 @@ class TrainingVsTestData(Scene):training_examples.next_to(ORIGIN, LEFT)test_examples.next_to(ORIGIN, RIGHT)self.play(- OldLaggedStart(FadeIn, training_examples),- OldLaggedStart(FadeIn, test_examples),+ LaggedStartMap(FadeIn, training_examples),+ LaggedStartMap(FadeIn, test_examples),)self.training_examples = training_examples@@ -449,7 +449,7 @@ class MNistDescription(Scene):self.add(title, authors)self.play(Write(link_words, run_time = 2),- OldLaggedStart(GrowArrow, arrows),+ LaggedStartMap(GrowArrow, arrows),)self.wait()@@ -472,7 +472,7 @@ class MNistDescription(Scene):group.set_height(FRAME_HEIGHT - 1)if i == 0:self.play(- OldLaggedStart(FadeIn, group),+ LaggedStartMap(FadeIn, group),FadeOut(word_group),)else:@@ -696,7 +696,7 @@ class IntroduceCostFunction(PreviewLearning):run_time = 2,lag_ratio = 0.5)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ShowCreationThenDestruction,neuron.edges_in.copy().set_stroke(YELLOW, 3),run_time = 1.5,@@ -742,7 +742,7 @@ class IntroduceCostFunction(PreviewLearning):for edge in neuron.edges_in])- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyMethod, neuron.edges_in,lambda m : (m.rotate_in_place, np.pi/12),rate_func = wiggle,@@ -771,7 +771,7 @@ class IntroduceCostFunction(PreviewLearning):self.color_edge_randomly(edge, exp = self.full_edges_exp)self.play(*[- OldLaggedStart(+ LaggedStartMap(FadeIn, group,run_time = 3,)@@ -807,8 +807,8 @@ class IntroduceCostFunction(PreviewLearning):self.play(self.network_mob.shift, 0.5*RIGHT,ShowCreation(rect),- OldLaggedStart(DrawBorderThenFill, image),- OldLaggedStart(DrawBorderThenFill, neurons),+ LaggedStartMap(DrawBorderThenFill, image),+ LaggedStartMap(DrawBorderThenFill, neurons),run_time = 1)self.play(@@ -879,7 +879,7 @@ class IntroduceCostFunction(PreviewLearning):network_mob.edge_groups))))- self.play(OldLaggedStart(FadeOut, to_fade, run_time = 1))+ self.play(LaggedStartMap(FadeOut, to_fade, run_time = 1))def break_down_cost_function(self):layer = self.network_mob.layers[-1]@@ -1004,8 +1004,8 @@ class IntroduceCostFunction(PreviewLearning):cost_group.scale, 0.5,cost_group.to_corner, UP+LEFT,MoveToTarget(brace),- OldLaggedStart(GrowArrow, arrows),- OldLaggedStart(FadeIn, terms),+ LaggedStartMap(GrowArrow, arrows),+ LaggedStartMap(FadeIn, terms),FadeIn(sum_term),Animation(decimals))@@ -1018,7 +1018,7 @@ class IntroduceCostFunction(PreviewLearning):]))self.wait()- self.play(OldLaggedStart(Indicate, decimals, rate_func = there_and_back))+ self.play(LaggedStartMap(Indicate, decimals, rate_func = there_and_back))self.wait()for update in update_decimals:update.rate_func = lambda a : smooth(1-a)@@ -1867,7 +1867,7 @@ class TwoVariableInputSpace(Scene):self.play(dot.restore)self.play(FadeIn(question),- OldLaggedStart(GrowArrow, arrows)+ LaggedStartMap(GrowArrow, arrows))self.wait()@@ -2025,7 +2025,7 @@ class ShowFullCostFunctionGradient(PreviewLearning):run_time = 2,lag_ratio = 0.5),- OldLaggedStart(FadeIn, words),+ LaggedStartMap(FadeIn, words),)self.play(*list(map(Write, [lb, rb, lhs])), run_time = 1)self.wait()@@ -2113,7 +2113,7 @@ class HowMinimizingCostMeansBetterTrainingPerformance(IntroduceCostFunction):for n1, n2 in zip(values, target_values)]- self.play(OldLaggedStart(FadeIn, words, run_time = 1))+ self.play(LaggedStartMap(FadeIn, words, run_time = 1))self.play(*[ChangingDecimal(d, update)for d, update in zip(decimals, updates)@@ -2273,8 +2273,8 @@ class NonSpatialGradientIntuition(Scene):direction_phrases.add(phrase)self.play(- OldLaggedStart(MoveToTarget, ws),- OldLaggedStart(FadeIn, direction_phrases)+ LaggedStartMap(MoveToTarget, ws),+ LaggedStartMap(FadeIn, direction_phrases))self.wait(2)@@ -2312,8 +2312,8 @@ class NonSpatialGradientIntuition(Scene):rect.target = wordsrects.add(rect)- self.play(OldLaggedStart(ShowCreation, rects))- self.play(OldLaggedStart(MoveToTarget, rects))+ self.play(LaggedStartMap(ShowCreation, rects))+ self.play(LaggedStartMap(MoveToTarget, rects))self.wait(2)class SomeConnectionsMatterMoreThanOthers(PreviewLearning):@@ -2644,7 +2644,7 @@ class GradientNudging(PreviewLearning):self.play(ReplacementTransform(mover, target),FadeIn(words),- OldLaggedStart(GrowArrow, arrows, run_time = 1)+ LaggedStartMap(GrowArrow, arrows, run_time = 1))self.play(FadeOut(target))self.play(self.get_edge_change_anim(edges))@@ -3113,7 +3113,7 @@ class InputRandomData(TestPerformance):self.play(ShowCreation(rect),- OldLaggedStart(+ LaggedStartMap(DrawBorderThenFill, image,stroke_width = 0.5)@@ -3147,7 +3147,7 @@ class InputRandomData(TestPerformance):for neuron, o in zip(neurons, vect):neuron.generate_target()neuron.target.set_fill(WHITE, opacity = o)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(MoveToTarget, neurons,run_time = 1))@@ -3521,13 +3521,13 @@ class RandomlyLabeledImageData(Scene):label.target.move_to(labels[i], LEFT)label.target.set_color(YELLOW)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeIn, groups,run_time = 3,lag_ratio = 0.3,))self.wait()- self.play(OldLaggedStart(+ self.play(LaggedStartMap(MoveToTarget, labels,run_time = 4,lag_ratio = 0.5,@@ -3580,7 +3580,7 @@ class TrainOnImages(PreviewLearning, RandomlyLabeledImageData):group.to_edge(UP)self.add(group)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(MoveToTarget, edges,lag_ratio = 0.4,run_time = 2,diff --git a/old_projects/nn/part3.py b/old_projects/nn/part3.pyindex dccd729c6..b0e312349 100644--- a/old_projects/nn/part3.py+++ b/old_projects/nn/part3.py@@ -154,7 +154,7 @@ class InterpretGradientComponents(GradientNudging):rects.add(SurroundingRectangle(VGroup(*decimal[-8:])))rects.set_color(WHITE)- self.play(OldLaggedStart(ShowCreation, rects))+ self.play(LaggedStartMap(ShowCreation, rects))self.play(FadeOut(rects))def isolate_particular_weights(self):@@ -335,7 +335,7 @@ class InterpretGradientComponents(GradientNudging):return [self.get_edge_change_anim(edges),- OldLaggedStart(+ LaggedStartMap(Indicate, w_terms,rate_func = there_and_back,run_time = 1.5,@@ -407,7 +407,7 @@ class GetLostInNotation(PiCreatureScene):mover.target.set_stroke(BLACK, width = 1)mover.target.move_to(mover)self.play(- OldLaggedStart(+ LaggedStartMap(MoveToTarget, movers,run_time = 2,),@@ -481,7 +481,7 @@ class ShowAveragingCost(PreviewLearning):#Wiggle all edgesedges = VGroup(*it.chain(*self.network_mob.edge_groups))reversed_edges = VGroup(*reversed(edges))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyFunction, edges,lambda edge : (lambda m : m.rotate_in_place(np.pi/12).set_color(YELLOW),@@ -507,7 +507,7 @@ class ShowAveragingCost(PreviewLearning):for train_in, train_out in training_data[:n_examples_per_adjustment]:self.show_one_example(train_in, train_out)self.wait(self.time_per_example)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyMethod, reversed_edges,lambda m : (m.rotate_in_place, np.pi),run_time = 1,@@ -585,7 +585,7 @@ class WalkThroughTwoExample(ShowAveragingCost):edge_groups = self.network_mob.edge_groupsdef adjust_edge_group_anim(edge_group):- return OldLaggedStart(+ return LaggedStartMap(ApplyFunction, edge_group,lambda edge : (lambda m : m.rotate_in_place(np.pi/12).set_color(YELLOW),@@ -696,7 +696,7 @@ class WalkThroughTwoExample(ShowAveragingCost):)self.play(- OldLaggedStart(+ LaggedStartMap(Transform, edges,lambda e : (e, e.target),run_time = 4,@@ -733,7 +733,7 @@ class WalkThroughTwoExample(ShowAveragingCost):self.play(output_labels.shift, SMALL_BUFF*RIGHT,- OldLaggedStart(GrowArrow, arrows, run_time = 1)+ LaggedStartMap(GrowArrow, arrows, run_time = 1))self.wait()@@ -769,8 +769,8 @@ class WalkThroughTwoExample(ShowAveragingCost):self.remove(two_rect)self.play(ReplacementTransform(two_rect.copy(), non_two_rects))self.wait()- self.play(OldLaggedStart(FadeOut, non_two_rects, run_time = 1))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeOut, non_two_rects, run_time = 1))+ self.play(LaggedStartMap(ApplyFunction, arrows,lambda arrow : (lambda m : m.scale_in_place(0.5).set_color(YELLOW),@@ -963,7 +963,7 @@ class WalkThroughTwoExample(ShowAveragingCost):color = WHITE)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyFunction, edges,lambda edge : (lambda m : m.rotate_in_place(np.pi/12).set_stroke(YELLOW),@@ -976,7 +976,7 @@ class WalkThroughTwoExample(ShowAveragingCost):ShowCreation(bright_edges),ShowCreation(bright_neurons))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyMethod, bright_neurons,lambda m : (m.shift, MED_LARGE_BUFF*LEFT),rate_func = there_and_back@@ -989,9 +989,9 @@ class WalkThroughTwoExample(ShowAveragingCost):)self.wait()for x in range(2):- self.play(OldLaggedStart(ShowCreationThenDestruction, bright_edges))- self.play(OldLaggedStart(ShowCreation, bright_edges))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ShowCreationThenDestruction, bright_edges))+ self.play(LaggedStartMap(ShowCreation, bright_edges))+ self.play(LaggedStartMap(ApplyMethod, dim_neurons,lambda m : (m.shift, MED_LARGE_BUFF*LEFT),rate_func = there_and_back@@ -1019,7 +1019,7 @@ class WalkThroughTwoExample(ShowAveragingCost):two_activation = two_decimal.numberdef get_edge_animation():- return OldLaggedStart(+ return LaggedStartMap(ShowCreationThenDestruction, bright_edges,lag_ratio = 0.7)@@ -1064,7 +1064,7 @@ class WalkThroughTwoExample(ShowAveragingCost):)self.play(get_edge_animation())self.play(- OldLaggedStart(GrowArrow, neuron_arrows),+ LaggedStartMap(GrowArrow, neuron_arrows),get_edge_animation(),)self.play(@@ -1082,12 +1082,12 @@ class WalkThroughTwoExample(ShowAveragingCost):two_decimal,lambda m : m.set_color(WHITE if m.number < 0.8 else BLACK),),- OldLaggedStart(ShowCreation, bright_edges),+ LaggedStartMap(ShowCreation, bright_edges),run_time = 2,)self.wait()self.play(- OldLaggedStart(ShowCreation, neuron_rects),+ LaggedStartMap(ShowCreation, neuron_rects),Write(seeing_words, run_time = 2),morty.change, "thinking", seeing_words)@@ -1098,7 +1098,7 @@ class WalkThroughTwoExample(ShowAveragingCost):morty.look_at, thinking_words)self.wait()- self.play(OldLaggedStart(FadeOut, VGroup(+ self.play(LaggedStartMap(FadeOut, VGroup(neuron_rects, two_neuron_rect,seeing_words, thinking_words,words, morty,@@ -1161,7 +1161,7 @@ class WalkThroughTwoExample(ShowAveragingCost):SMALL_BUFF, aligned_edge = LEFT)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyFunction, prev_neurons,lambda neuron : (lambda m : m.scale_in_place(0.5).set_color(YELLOW),@@ -1186,7 +1186,7 @@ class WalkThroughTwoExample(ShowAveragingCost):self.wait(0.5)self.play(s_edges.restore)self.play(- OldLaggedStart(GrowArrow, arrows),+ LaggedStartMap(GrowArrow, arrows),neurons.set_stroke, color)self.play(ApplyMethod(@@ -1235,12 +1235,12 @@ class WalkThroughTwoExample(ShowAveragingCost):self.play(ShowCreation(rect))self.play(Write(words1))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(Indicate, prev_neurons,rate_func = wiggle))self.wait()- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ShowCreationThenDestruction, edges))self.play(Transform(words1, words2))@@ -1289,7 +1289,7 @@ class WalkThroughTwoExample(ShowAveragingCost):self.play(FadeIn(VGroup(neuron, decimal, arrow, label)),- OldLaggedStart(ShowCreation, neuron.edges_in),+ LaggedStartMap(ShowCreation, neuron.edges_in),)self.play(ReplacementTransform(neuron.edges_in.copy(), new_arrows),@@ -1309,10 +1309,10 @@ class WalkThroughTwoExample(ShowAveragingCost):arrows_to_fade.add(all_dots_plus)self.play(- OldLaggedStart(+ LaggedStartMap(FadeIn, VGroup(*it.starmap(VGroup, quads[5:])),),- OldLaggedStart(+ LaggedStartMap(FadeIn, VGroup(*[n.edges_in for n in neurons[5:]])),Write(all_dots_plus),@@ -1357,7 +1357,7 @@ class WalkThroughTwoExample(ShowAveragingCost):self.play(FadeOut(words_to_fade),FadeIn(prev_neurons),- OldLaggedStart(ShowCreation, edges),+ LaggedStartMap(ShowCreation, edges),)self.wait()for neuron, arrow in zip(neurons, self.prev_neuron_arrows):@@ -1598,9 +1598,9 @@ class ConstructGradientFromAllTrainingExamples(Scene):change.scale_in_place(self.change_scale_val)self.play(- OldLaggedStart(FadeIn, examples),- OldLaggedStart(ShowCreation, self.h_lines),- OldLaggedStart(ShowCreation, self.v_lines),+ LaggedStartMap(FadeIn, examples),+ LaggedStartMap(ShowCreation, self.h_lines),+ LaggedStartMap(ShowCreation, self.v_lines),Write(h_dots,run_time = 2,@@ -1683,17 +1683,17 @@ class ConstructGradientFromAllTrainingExamples(Scene):)self.play(GrowArrow(arrow_to_averages))self.play(- OldLaggedStart(ShowCreation, VGroup(*rects[1:])),+ LaggedStartMap(ShowCreation, VGroup(*rects[1:])),*look_at_anims(rects[1]))self.play(- OldLaggedStart(+ LaggedStartMap(ReplacementTransform, VGroup(*rects[1:]).copy(),lambda m : (m, m.arrow),lag_ratio = 0.7,),VGroup(*rects[1:]).set_stroke, WHITE, 1,- OldLaggedStart(+ LaggedStartMap(ReplacementTransform, VGroup(*self.change_rows[1:]).copy(),lambda m : (m, m.target),lag_ratio = 0.7,@@ -1745,7 +1745,7 @@ class ConstructGradientFromAllTrainingExamples(Scene):))arrow = self.arrow_to_averages- self.play(OldLaggedStart(FadeOut, to_fade))+ self.play(LaggedStartMap(FadeOut, to_fade))self.play(brackets.shift, shift_vect,brackets.set_fill, WHITE, 1,@@ -1893,7 +1893,7 @@ class OrganizeDataIntoMiniBatches(Scene):random.shuffle(mob.submobjects)self.arrange_examples_in_grid(examples)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeIn, alt_order_examples,lag_ratio = 0.2,run_time = 4@@ -1903,7 +1903,7 @@ class OrganizeDataIntoMiniBatches(Scene):self.examples = examplesdef shuffle_examples(self):- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyMethod, self.examples,lambda m : (m.restore,),lag_ratio = 0.3,@@ -1939,7 +1939,7 @@ class OrganizeDataIntoMiniBatches(Scene):)for row in rows])- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeIn, rects,lag_ratio = 0.7,rate_func = there_and_back@@ -1957,7 +1957,7 @@ class OrganizeDataIntoMiniBatches(Scene):)def indicate_row(row):row.sort(lambda p : p[0])- return OldLaggedStart(+ return LaggedStartMap(ApplyFunction, row,lambda row : (lambda m : m.scale_in_place(0.75).set_color(YELLOW),@@ -2026,7 +2026,7 @@ class SwimmingInTerms(TeacherStudentsScene):terms.arrange(DOWN)terms.to_edge(UP)self.play(- OldLaggedStart(FadeIn, terms),+ LaggedStartMap(FadeIn, terms),self.get_student_changes(*["horrified"]*3))self.wait()@@ -2221,7 +2221,7 @@ class SimplestNetworkExample(PreviewLearning):self.wait()self.play(Write(other_terms))for x in range(2):- self.play(OldLaggedStart(+ self.play(LaggedStartMap(Indicate, variables,rate_func = wiggle,run_time = 4,@@ -2241,7 +2241,7 @@ class SimplestNetworkExample(PreviewLearning):))))for mob in to_fade:mob.save_state()- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyMethod, to_fade,lambda m : (m.fade, 0.9)))@@ -2306,7 +2306,7 @@ class SimplestNetworkExample(PreviewLearning):not_exponents.set_color(YELLOW)self.play(- OldLaggedStart(+ LaggedStartMap(ShowCreation, superscript_rects,lag_ratio = 0.8, run_time = 1.5),@@ -2403,7 +2403,7 @@ class SimplestNetworkExample(PreviewLearning):ReplacementTransform(pre_a, a),ReplacementTransform(pre_y, y),)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeIn, VGroup(*[m for m in cost_equation if m not in [a, y]])))self.play(@@ -2951,7 +2951,7 @@ class SimplestNetworkExample(PreviewLearning):def indicate_everything_on_screen(self):everything = VGroup(*self.get_top_level_mobjects())everything = VGroup(*[m for m in everything.family_members_with_points() if not m.is_subpath])- self.play(OldLaggedStart(+ self.play(LaggedStartMap(Indicate, everything,rate_func = wiggle,lag_ratio = 0.2,@@ -3371,7 +3371,7 @@ class SimplestNetworkExample(PreviewLearning):self.play(ShowCreation(rect))self.play(FadeIn(comp_graph), FadeOut(rect))for x in range(2):- self.play(OldLaggedStart(+ self.play(LaggedStartMap(Indicate, path_to_C,rate_func = there_and_back,run_time = 1.5,@@ -3417,7 +3417,7 @@ class SimplestNetworkExample(PreviewLearning):]path_to_C = VGroup(bL, zL, aL, C0)def get_path_animation():- return OldLaggedStart(+ return LaggedStartMap(Indicate, path_to_C,rate_func = there_and_back,run_time = 1.5,@@ -3492,7 +3492,7 @@ class SimplestNetworkExample(PreviewLearning):for attr in ["aLm1", "zL", "aL", "C0"]])def get_path_animation():- return OldLaggedStart(+ return LaggedStartMap(Indicate, path_to_C,rate_func = there_and_back,run_time = 1.5,@@ -3554,7 +3554,7 @@ class SimplestNetworkExample(PreviewLearning):prev_layer.next_to(self.last_neurons, LEFT, buff = 0)self.remove(prev_layer)- self.play(OldLaggedStart(FadeOut, to_fade, run_time = 1))+ self.play(LaggedStartMap(FadeOut, to_fade, run_time = 1))self.play(ShowCreation(prev_comp_subgraph, run_time = 1),self.chain_rule_equation.to_edge, RIGHT@@ -3587,7 +3587,7 @@ class SimplestNetworkExample(PreviewLearning):])for x in range(2):- self.play(OldLaggedStart(+ self.play(LaggedStartMap(Indicate, path_to_C,rate_func = there_and_back,run_time = 1.5,@@ -3728,7 +3728,7 @@ class GeneralFormulas(SimplestNetworkExample):ReplacementTransform(start_labels, all_labels),ReplacementTransform(start_arrows, all_arrows),)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ShowCreationThenDestruction,VGroup(*all_subscript_rects.family_members_with_points()),lag_ratio = 0.7@@ -3764,8 +3764,8 @@ class GeneralFormulas(SimplestNetworkExample):arrows_to_fade.add(neuron.arrow)self.play(- OldLaggedStart(FadeOut, labels_to_fade),- OldLaggedStart(FadeOut, arrows_to_fade),+ LaggedStartMap(FadeOut, labels_to_fade),+ LaggedStartMap(FadeOut, arrows_to_fade),run_time = 1)for neuron, rect in zip(self.chosen_neurons, rects):@@ -3841,9 +3841,9 @@ class GeneralFormulas(SimplestNetworkExample):ReplacementTransform(mob, mob.target)for mob in (aj, yj)])- self.play(OldLaggedStart(FadeIn, to_fade_in))+ self.play(LaggedStartMap(FadeIn, to_fade_in))self.wait(2)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(Indicate, sum_part,rate_func = wiggle,))@@ -3880,7 +3880,7 @@ class GeneralFormulas(SimplestNetworkExample):edges.target.to_edge(UP)self.play(MoveToTarget(edges))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyFunction, edges,lambda e : (lambda m : m.rotate_in_place(np.pi/12).set_color(YELLOW),@@ -3994,7 +3994,7 @@ class GeneralFormulas(SimplestNetworkExample):))self.play(Write(chain_rule))self.wait()- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ShowCreationThenDestruction, rects,lag_ratio = 0.7,run_time = 3@@ -4092,7 +4092,7 @@ class GeneralFormulas(SimplestNetworkExample):for path, path_line in zip(paths, path_lines):label = path[-1]self.play(- OldLaggedStart(+ LaggedStartMap(Indicate, path,rate_func = wiggle,run_time = 1,@@ -4148,7 +4148,7 @@ class GeneralFormulas(SimplestNetworkExample):]self.play(ShowCreation(deriv_rect))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ShowCreationThenDestruction,mid_neuron_outlines))@@ -4160,11 +4160,11 @@ class GeneralFormulas(SimplestNetworkExample):]), run_time = 4, rate_func = there_and_back)self.play(faded_edges.restore)self.play(- OldLaggedStart(+ LaggedStartMap(GrowFromCenter, layer.neurons,run_time = 1),- OldLaggedStart(ShowCreation, edges),+ LaggedStartMap(ShowCreation, edges),FadeOut(to_fade))for x in range(3):@@ -4233,7 +4233,7 @@ class LayersOfComplexity(Scene):gradient.set_color(RED)gradient.next_to(arrow, LEFT)- self.play(OldLaggedStart(FadeIn, chain_rule_equations))+ self.play(LaggedStartMap(FadeIn, chain_rule_equations))self.play(GrowFromCenter(brace))self.play(GrowArrow(arrow))self.play(Write(gradient))@@ -4330,10 +4330,10 @@ class SponsorFrame(PiCreatureScene):t_shirt_words_outline.set_stroke(GREEN, 3)self.play(morty.change, "hooray", t_shirt_words,- OldLaggedStart(ShowCreation, t_shirt_words_outline),+ LaggedStartMap(ShowCreation, t_shirt_words_outline),)self.play(FadeOut(t_shirt_words_outline))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(Indicate, url,rate_func = wiggle,color = PINK,diff --git a/old_projects/pi_day.py b/old_projects/pi_day.pyindex d3894ae0f..25f6eaf2d 100644--- a/old_projects/pi_day.py+++ b/old_projects/pi_day.py@@ -169,7 +169,7 @@ class AnalysisQuote(Scene):text.to_edge(LEFT, buff = 1)- self.play(OldLaggedStart(FadeIn,text), run_time = 5)+ self.play(LaggedStartMap(FadeIn,text), run_time = 5)self.wait()self.play(FadeOut(text))self.wait()@@ -194,7 +194,7 @@ class BernoulliQuote(Scene):for char in text.submobjects[151:157]:char.set_fill(HIGHLIGHT_COLOR)- self.play(OldLaggedStart(FadeIn,text), run_time = 5)+ self.play(LaggedStartMap(FadeIn,text), run_time = 5)self.wait()self.play(FadeOut(text))self.wait@@ -403,7 +403,7 @@ class ManyFormulas(Scene):formulas.arrange(DOWN, buff = MED_LARGE_BUFF)formulas.to_edge(LEFT)- self.play(OldLaggedStart(FadeIn, formulas, run_time = 3))+ self.play(LaggedStartMap(FadeIn, formulas, run_time = 3))circle = Circle(color = YELLOW, radius = 2)circle.to_edge(RIGHT)@@ -583,10 +583,10 @@ class HeroAndVillain(Scene):FadeInFromDown(good_euler),Write(good_euler_label))- self.play(OldLaggedStart(FadeIn, tau_words))+ self.play(LaggedStartMap(FadeIn, tau_words))self.wait()self.play(FadeInFromDown(bad_euler_pixelated))- self.play(OldLaggedStart(FadeIn, pi_words))+ self.play(LaggedStartMap(FadeIn, pi_words))self.wait(2)self.play(FadeIn(bad_euler),@@ -639,7 +639,7 @@ class AnalysisQuote(Scene):self.add(analysis)self.play(*generate_anims2(), rate_func = lambda t : 0.5*smooth(t))- self.play(OldLaggedStart(FadeIn,text), run_time = 5)+ self.play(LaggedStartMap(FadeIn,text), run_time = 5)self.play(FadeIn(pi_formula))self.wait()@@ -741,7 +741,7 @@ class ThingsNamedAfterEuler(Scene):group.arrange(DOWN, aligned_edge = LEFT)group.set_height(FRAME_HEIGHT - 1)- self.play(OldLaggedStart(FadeIn, group, lag_ratio = 0.2, run_time = 12))+ self.play(LaggedStartMap(FadeIn, group, lag_ratio = 0.2, run_time = 12))self.wait()class EulerThinking(Scene):diff --git a/old_projects/putnam.py b/old_projects/putnam.pyindex a9eca9e74..7af896858 100644--- a/old_projects/putnam.py+++ b/old_projects/putnam.py@@ -93,7 +93,7 @@ class IntroducePutnam(Scene):self.add(title)self.play(Write(six_hours))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(GrowFromCenter, flat_questions,run_time = 3,))@@ -103,7 +103,7 @@ class IntroducePutnam(Scene):*list(map(ShowCreation, rects)))self.wait()- self.play(OldLaggedStart(+ self.play(LaggedStartMap(DrawBorderThenFill, out_of_tens,run_time = 3,stroke_color = YELLOW@@ -324,10 +324,10 @@ class TwoDCase(Scene):question.to_corner(UP+RIGHT)self.question = question- self.play(OldLaggedStart(DrawBorderThenFill, point_mobs))+ self.play(LaggedStartMap(DrawBorderThenFill, point_mobs))self.play(FadeIn(triangle))self.wait()- self.play(OldLaggedStart(Write, point_labels))+ self.play(LaggedStartMap(Write, point_labels))self.wait()self.play(Write(question))for x in range(self.n_initial_random_choices):@@ -385,7 +385,7 @@ class TwoDCase(Scene):push_pin.fade(1)push_pins.add(push_pin)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyMethod, push_pins,lambda mob : (mob.restore,)))@@ -535,7 +535,7 @@ class TwoDCase(Scene):rate_func = wiggle,))- self.play(OldLaggedStart(FadeIn, proportion, run_time = 1))+ self.play(LaggedStartMap(FadeIn, proportion, run_time = 1))self.wait()#Non right angles@@ -923,9 +923,9 @@ class RevisitTwoDCase(TwoDCase):words.next_to(rect, UP)words.shift_onto_screen()- self.play(OldLaggedStart(ShowCreation, center_lines, run_time = 1))+ self.play(LaggedStartMap(ShowCreation, center_lines, run_time = 1))self.play(- OldLaggedStart(FadeIn, arcs, run_time = 1),+ LaggedStartMap(FadeIn, arcs, run_time = 1),Animation(self.point_mobs),)self.wait()@@ -995,7 +995,7 @@ class RevisitTwoDCase(TwoDCase):ShowCreation(underline))self.play(FadeIn(words[0]))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyMethod, point_label_groups,lambda mob : (mob.restore,),))@@ -1009,7 +1009,7 @@ class RevisitTwoDCase(TwoDCase):self.center_lines_update.update(1)self.play(FadeIn(words[1]),- OldLaggedStart(GrowFromCenter, center_lines)+ LaggedStartMap(GrowFromCenter, center_lines))for x in range(3):self.change_point_mobs_randomly(run_time = 1)@@ -1242,8 +1242,8 @@ class Rewrite3DRandomProcedure(Scene):self.play(FadeIn(words[0]))self.play(ShowCreation(cross))self.wait()- self.play(OldLaggedStart(FadeIn, words[1]))- self.play(OldLaggedStart(FadeIn, words[2]))+ self.play(LaggedStartMap(FadeIn, words[1]))+ self.play(LaggedStartMap(FadeIn, words[2]))self.wait(2)self.play(Write(words[3]))self.wait(3)@@ -1363,20 +1363,20 @@ class BrilliantPuzzle(PiCreatureScene):self.remove(students)self.play(Write(title))- self.play(OldLaggedStart(GrowFromCenter, students))+ self.play(LaggedStartMap(GrowFromCenter, students))self.play(- OldLaggedStart(Write, tests),- OldLaggedStart(+ LaggedStartMap(Write, tests),+ LaggedStartMap(ApplyMethod, students,lambda m : (m.change, "horrified", m.test)))self.wait()- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyMethod, students,lambda m : (m.change, "conniving")))- self.play(OldLaggedStart(ShowCreation, arrows))+ self.play(LaggedStartMap(ShowCreation, arrows))for x in range(2):self.swap_arrows_randomly(arrows)self.wait()diff --git a/old_projects/qa_round_two.py b/old_projects/qa_round_two.pyindex 04ec2a4ed..f5f407bd3 100644--- a/old_projects/qa_round_two.py+++ b/old_projects/qa_round_two.py@@ -36,7 +36,7 @@ class Announcements(PiCreatureScene):self.play(Write(title),- OldLaggedStart(FadeIn, announcements),+ LaggedStartMap(FadeIn, announcements),ShowCreation(underline),self.pi_creature.change, "hooray", underline,)@@ -117,7 +117,7 @@ class PowersOfTwo(Scene):)self.play(- OldLaggedStart(+ LaggedStartMap(FadeIn, curr_po2_outline,rate_func = lambda t : wiggle(t, 8),run_time = 2,diff --git a/old_projects/quat3d.py b/old_projects/quat3d.pyindex 7f20ff9d7..c2f834f77 100644--- a/old_projects/quat3d.py+++ b/old_projects/quat3d.py@@ -216,7 +216,7 @@ class Introduction(QuaternionHistory):self.play(FadeInFrom(image, 3 * DOWN),FadeInFromLarge(name),- OldLaggedStart(+ LaggedStartMap(FadeIn, VGroup(*it.chain(*quote)),lag_ratio=0.3,run_time=2@@ -271,7 +271,7 @@ class WhoCares(TeacherStudentsScene):self.teacher.change, "raise_right_hand")# self.play(- # OldLaggedStart(+ # LaggedStartMap(# FadeInFromDown, quotes,# run_time=3# ),@@ -316,7 +316,7 @@ class WhoCares(TeacherStudentsScene):# )# self.add_foreground_mobjects(vr_headsets)# self.play(- # OldLaggedStart(+ # LaggedStartMap(# FadeInFrom, vr_headsets,# lambda m: (m, UP),# ),@@ -1209,7 +1209,7 @@ class RuleForQuaternionRotations(EulerAnglesAndGimbal):self.wait()self.play(FadeInFromDown(full_angle_q[0]),- OldLaggedStart(FadeInFromDown, full_angle_q[2:]),+ LaggedStartMap(FadeInFromDown, full_angle_q[2:]),)self.play(GrowFromCenter(brace),@@ -1370,7 +1370,7 @@ class ExpandOutFullProduct(TeacherStudentsScene):FadeInFromDown(product))self.play(- OldLaggedStart(GrowFromCenter, braces),+ LaggedStartMap(GrowFromCenter, braces),self.get_student_changes("confused", "horrified", "confused")diff --git a/old_projects/quaternions.py b/old_projects/quaternions.pyindex ce205f7c8..68d4763b1 100644--- a/old_projects/quaternions.py+++ b/old_projects/quaternions.py@@ -454,7 +454,7 @@ class ManyNumberSystems(Scene):self.add(title)self.play(FadeInFromLarge(H_label))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeInFromLarge, VGroup(*it.chain(systems[:2], systems[3:])),lambda m: (m, 4)))@@ -476,7 +476,7 @@ class ManyNumberSystems(Scene):number_line.add(R_example_dot)plane.add(C_example_dot)self.wait(2)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyMethod,VGroup(H_label,@@ -598,7 +598,7 @@ class IntroduceHamilton(Scene):self.wait()self.play(- OldLaggedStart(+ LaggedStartMap(FadeIn, quote,lag_ratio=0.2,run_time=4@@ -613,7 +613,7 @@ class IntroduceHamilton(Scene):run_time=2,rate_func=squish_rate_func(smooth, 0.5, 1),),- OldLaggedStart(+ LaggedStartMap(FadeOutAndShiftDown, VGroup(*it.chain(quote, quote_rect, quote_label))@@ -788,12 +788,12 @@ class QuaternionHistory(Scene):remover=True))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeInFrom, students,lambda m: (m, LEFT),))self.play(- OldLaggedStart(+ LaggedStartMap(ApplyMethod, students,lambda pi: (pi.change,@@ -805,14 +805,14 @@ class QuaternionHistory(Scene):)blink_wait(3)self.play(- OldLaggedStart(FadeInFromDown, images),- OldLaggedStart(FadeInFromLarge, image_labels),+ LaggedStartMap(FadeInFromDown, images),+ LaggedStartMap(FadeInFromLarge, image_labels),Write(society_title))blink_wait(3)self.play(FadeOutAndShift(hamilton, RIGHT),- OldLaggedStart(+ LaggedStartMap(FadeOutAndShift, images_with_labels,lambda m: (m, UP)),@@ -827,13 +827,13 @@ class QuaternionHistory(Scene):group = self.get_dissenter_images_quotes_and_names()images, quotes, names = groupself.play(- OldLaggedStart(FadeInFromDown, images),- OldLaggedStart(FadeInFromLarge, names),+ LaggedStartMap(FadeInFromDown, images),+ LaggedStartMap(FadeInFromLarge, names),lag_ratio=0.75,run_time=2,)for quote in quotes:- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeIn, VGroup(*quote.family_members_with_points()),lag_ratio=0.3))@@ -907,14 +907,14 @@ class QuaternionHistory(Scene):)def get_change_places():- return OldLaggedStart(+ return LaggedStartMap(change_single_place, characters,lag_ratio=0.6)self.play(Write(title),- OldLaggedStart(FadeInFromDown, characters)+ LaggedStartMap(FadeInFromDown, characters))self.play(get_change_places(),@@ -1106,7 +1106,7 @@ class QuantumSpin(Scene):self.add(title, groups)self.play()self.play(- OldLaggedStart(FadeInFromDown, matrices, run_time=3),+ LaggedStartMap(FadeInFromDown, matrices, run_time=3),*rotations)for x in range(2):@@ -1248,12 +1248,12 @@ class IntroduceLinusTheLinelander(Scene):linus.look_at, number_line)self.play(- OldLaggedStart(FadeInFromDown, number_line.numbers),- OldLaggedStart(ShowCreation, number_line.tick_marks),+ LaggedStartMap(FadeInFromDown, number_line.numbers),+ LaggedStartMap(ShowCreation, number_line.tick_marks),linus.change, "happy")self.play(- OldLaggedStart(FadeInFromDown, algebra),+ LaggedStartMap(FadeInFromDown, algebra),linus.look_at, algebra)self.play(Blink(linus))@@ -1282,7 +1282,7 @@ class IntroduceLinusTheLinelander(Scene):q_marks.next_to(linus.body, UP, buff=0)q_marks.set_color_by_gradient(BLUE, GREEN, YELLOW)random.shuffle(q_marks.submobjects)- q_marks_anim = OldLaggedStart(+ q_marks_anim = LaggedStartMap(FadeIn, q_marks,run_time=15,rate_func=there_and_back,@@ -1476,14 +1476,14 @@ class DefineComplexNumbersPurelyAlgebraically(Scene):self.play(Write(number, run_time=1))self.play(GrowFromCenter(real_brace),- OldLaggedStart(FadeIn, real_label),+ LaggedStartMap(FadeIn, real_label),linus.change, "confused", number,run_time=1)self.wait()self.play(GrowFromCenter(imag_brace),- OldLaggedStart(FadeIn, imag_label),+ LaggedStartMap(FadeIn, imag_label),run_time=1)self.play(Blink(linus))@@ -1657,7 +1657,7 @@ class DefineComplexNumbersPurelyAlgebraically(Scene):linus.look_at, final_prouct,)self.play(- OldLaggedStart(ShowCreation, final_arrows),+ LaggedStartMap(ShowCreation, final_arrows),run_time=3,)self.play(linus.change, "confused")@@ -1681,8 +1681,8 @@ class DefineComplexNumbersPurelyAlgebraically(Scene):braces = VGroup(real_brace, imag_brace)labels = VGroup(real_label, imag_label)self.play(- OldLaggedStart(GrowFromCenter, braces),- OldLaggedStart(Write, labels),+ LaggedStartMap(GrowFromCenter, braces),+ LaggedStartMap(Write, labels),)self.wait()@@ -1737,7 +1737,7 @@ class TextbookQuaternionDefinition(TeacherStudentsScene):def_rect = SurroundingRectangle(defining_products)self.play(- OldLaggedStart(FadeInFromDown, defining_products),+ LaggedStartMap(FadeInFromDown, defining_products),self.get_student_changes(*3 * ["confused"]),self.teacher.change, "raise_right_hand",)@@ -1800,7 +1800,7 @@ class ProblemsWhereComplexNumbersArise(Scene):self.add(problems, v_dots)self.play(ShowCreation(underline),- OldLaggedStart(FadeInFromDown, title, lag_ratio=0.5),+ LaggedStartMap(FadeInFromDown, title, lag_ratio=0.5),run_time=3)self.wait()@@ -1870,7 +1870,7 @@ class WalkThroughComplexMultiplication(ShowComplexMultiplicationExamples):z_line, z_label,w_line, w_label,)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeInFromLarge, VGroup(z_dot, w_dot),lambda m: (m, 5),lag_ratio=0.8,@@ -1991,7 +1991,7 @@ class WalkThroughComplexMultiplication(ShowComplexMultiplicationExamples):)self.wait()self.play(FadeOut(VGroup(product_line, product_dot)))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ShowCreationThenDestruction, sparkly_plane,lag_ratio=0.5,run_time=2@@ -2209,7 +2209,7 @@ class LinusThinksAboutStretching(Scene):lower_line.stretch, scalar, 0,run_time=2),- # OldLaggedStart(FadeIn, words, run_time=1),+ # LaggedStartMap(FadeIn, words, run_time=1),FadeInFromLarge(words, 1.0 / scalar),linus.look_at, top_line.number_to_point(scalar))@@ -2373,10 +2373,10 @@ class IntroduceStereographicProjection(MovingCameraScene):v_line.set_height(FRAME_HEIGHT)v_line.set_stroke(RED, 5)- self.play(OldLaggedStart(FadeInFromLarge, dots))+ self.play(LaggedStartMap(FadeInFromLarge, dots))self.play(FadeInFromLarge(neg_one_dot))self.add(lines, neg_one_dot, dots)- self.play(OldLaggedStart(ShowCreation, lines))+ self.play(LaggedStartMap(ShowCreation, lines))self.wait()self.play(lines.set_stroke, {"width": 0.5},@@ -2677,8 +2677,8 @@ class IntroduceStereographicProjectionLinusView(IntroduceStereographicProjectionself.wait()for i in [1, 0]:self.play(- OldLaggedStart(GrowArrow, arrows[i::2]),- OldLaggedStart(Write, labels[i::2])+ LaggedStartMap(GrowArrow, arrows[i::2]),+ LaggedStartMap(Write, labels[i::2]))self.play(Blink(linus))@@ -3100,7 +3100,7 @@ class IntroduceThreeDNumbers(SpecialThreeDScene):line.set_stroke(width=5)self.play(ShowCreationThenDestruction(line),- OldLaggedStart(+ LaggedStartMap(Indicate, group,rate_func=there_and_back,color=line.get_color(),@@ -3191,8 +3191,8 @@ class IntroduceThreeDNumbers(SpecialThreeDScene):)self.remove(z_axis_top)self.play(- OldLaggedStart(MoveToTarget, group, lag_ratio=0.8),- OldLaggedStart(MoveToTarget, coord_lines, lag_ratio=0.8),+ LaggedStartMap(MoveToTarget, group, lag_ratio=0.8),+ LaggedStartMap(MoveToTarget, coord_lines, lag_ratio=0.8),FadeOut(self.title),FadeIn(new_title),run_time=3@@ -3593,7 +3593,7 @@ class TwoDStereographicProjection(IntroduceFelix):north_hemisphere.set_fill(opacity=0.8)self.play(- OldLaggedStart(ShowCreation, north_lines),+ LaggedStartMap(ShowCreation, north_lines),FadeIn(north_hemisphere))self.play(@@ -3644,7 +3644,7 @@ class TwoDStereographicProjection(IntroduceFelix):)self.play(- OldLaggedStart(ShowCreation, south_lines),+ LaggedStartMap(ShowCreation, south_lines),FadeIn(south_hemisphere))self.play(@@ -3691,8 +3691,8 @@ class TwoDStereographicProjection(IntroduceFelix):sphere_arcs.set_stroke(RED)self.play(- OldLaggedStart(GrowArrow, arrows),- OldLaggedStart(Write, neg_ones)+ LaggedStartMap(GrowArrow, arrows),+ LaggedStartMap(Write, neg_ones))self.wait(3)self.play(@@ -3960,7 +3960,7 @@ class ShowRotationsJustWithReferenceCircles(TwoDStereographicProjection):phi=60 * DEGREES,)self.play(- OldLaggedStart(+ LaggedStartMap(FadeInFrom, labels,lambda m: (m, UP))@@ -4203,7 +4203,7 @@ class IntroduceQuaternions(Scene):three_axes.arrange(RIGHT, buff=LARGE_BUFF)three_axes.next_to(number, DOWN, LARGE_BUFF)- self.play(OldLaggedStart(FadeInFromLarge, three_axes))+ self.play(LaggedStartMap(FadeInFromLarge, three_axes))self.wait(2)self.three_axes = three_axes@@ -4241,8 +4241,8 @@ class IntroduceQuaternions(Scene):VGroup(scalar_word, vector_word).set_color(YELLOW)self.play(- OldLaggedStart(GrowFromCenter, braces),- OldLaggedStart(+ LaggedStartMap(GrowFromCenter, braces),+ LaggedStartMap(FadeInFrom, VGroup(real_word, imag_word),lambda m: (m, UP))@@ -4430,7 +4430,7 @@ class ShowDotProductCrossProductFromOfQMult(Scene):self.add(product)self.add(braces)self.add(vector_defs)- self.play(OldLaggedStart(FadeInFromLarge, result))+ self.play(LaggedStartMap(FadeInFromLarge, result))self.wait()@@ -4626,7 +4626,7 @@ class BreakUpQuaternionMultiplicationInParts(Scene):randy.change, "confused", rotate_words,ShowCreationThenFadeAround(rotate_words),)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeInFrom, q_marks,lambda m: (m, LEFT),lag_ratio=0.8,@@ -4814,7 +4814,7 @@ class HypersphereStereographicProjection(SpecialThreeDScene):words.next_to(brace, DOWN, SMALL_BUFF, LEFT)self.play(Write(sphere))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeInFrom, labels,lambda m: (m, IN)))@@ -5273,7 +5273,7 @@ class RuleOfQuaternionMultiplication(HypersphereStereographicProjection):mt.set_value(self.q_tracker.get_value())self.play(ShowCreation(circle, run_time=2))- self.play(OldLaggedStart(ShowCreation, arrows, lag_ratio=0.25))+ self.play(LaggedStartMap(ShowCreation, arrows, lag_ratio=0.25))self.wait()circle.add_updater(lambda c: c.become(get_circle_1i()))m_tracker.add_updater(set_to_q_value)@@ -5908,7 +5908,7 @@ class MentionCommutativity(TeacherStudentsScene):self.wait(3)self.play(FadeInFrom(ji_eq),- OldLaggedStart(+ LaggedStartMap(ApplyMethod, VGroup(ij_eq, general_eq),lambda m: (m.shift, UP),lag_ratio=0.8,diff --git a/old_projects/sphere_area.py b/old_projects/sphere_area.pyindex 7d7831c9a..4f80ce243 100644--- a/old_projects/sphere_area.py+++ b/old_projects/sphere_area.py@@ -147,7 +147,7 @@ class AskAboutShadowRelation(SpecialThreeDScene):# run_time=2# )# )- self.play(OldLaggedStart(+ self.play(LaggedStartMap(UpdateFromAlphaFunc, sphere,lambda mob: (mob, lambda m, a: m.set_fill(color=interpolate_color(BLUE_E, YELLOW, a),@@ -218,7 +218,7 @@ class AskAboutShadowRelation(SpecialThreeDScene):self.remove(shadow)self.play(*anims)self.add_fixed_in_frame_mobjects(shadows, area_labels)- self.play(OldLaggedStart(FadeInFromLarge, area_labels))+ self.play(LaggedStartMap(FadeInFromLarge, area_labels))self.wait()self.shadows = shadows@@ -265,7 +265,7 @@ class AskAboutShadowRelation(SpecialThreeDScene):mob.target.space_out_submobjects(self.space_out_factor)self.play(*map(MoveToTarget, mobjects))self.play(*[- OldLaggedStart(+ LaggedStartMap(ApplyMethod, mob,lambda m: (m.set_fill, YELLOW, 1),rate_func=there_and_back,@@ -596,9 +596,9 @@ class UnfoldCircles(Scene):mob.clear_updaters()self.play(- OldLaggedStart(Write, circle_copies, lag_ratio=0.7),- OldLaggedStart(Write, R_labels),- OldLaggedStart(ShowCreation, radii_lines),+ LaggedStartMap(Write, circle_copies, lag_ratio=0.7),+ LaggedStartMap(Write, R_labels),+ LaggedStartMap(ShowCreation, radii_lines),)self.remove(circle_copies)self.add(circles, radii_lines, R_labels)@@ -638,7 +638,7 @@ class UnfoldCircles(Scene):self.add(triangles, triangles.copy(), self.area_label)self.play(MoveToTarget(triangles[0]))self.wait()- self.play(OldLaggedStart(MoveToTarget, triangles))+ self.play(LaggedStartMap(MoveToTarget, triangles))self.wait()#@@ -708,7 +708,7 @@ class ShowProjection(SphereCylinderScene):pieces.fade(1)self.add(ghost_sphere)- self.play(OldLaggedStart(Restore, pieces))+ self.play(LaggedStartMap(Restore, pieces))self.wait()self.pieces = pieces@@ -727,7 +727,7 @@ class ShowProjection(SphereCylinderScene):self.play(*map(ShowCreation, proj_lines))self.play(- OldLaggedStart(MoveToTarget, pieces),+ LaggedStartMap(MoveToTarget, pieces),)self.wait()@@ -1407,7 +1407,7 @@ class TinierAndTinerRectangles(SphereCylinderScene):for piece in s1:piece.add(VectorizedPoint(piece.get_center() / 2))self.play(- OldLaggedStart(Restore, s2)+ LaggedStartMap(Restore, s2))self.remove(s1)self.wait(5)@@ -1549,7 +1549,7 @@ class JustifyHeightSquish(MovingCameraScene):self.wait()self.play(ShowCreation(hyp),- OldLaggedStart(+ LaggedStartMap(DrawBorderThenFill, hyp_word,stroke_width=0.5,run_time=1,@@ -1759,8 +1759,8 @@ class JustifyHeightSquish(MovingCameraScene):self.wait()self.play(- OldLaggedStart(MoveToTarget, movers),- OldLaggedStart(FadeInFromDown, equation[1:4:2])+ LaggedStartMap(MoveToTarget, movers),+ LaggedStartMap(FadeInFromDown, equation[1:4:2]))self.wait()self.play(FadeInFrom(equation[-2:], LEFT))@@ -2141,7 +2141,7 @@ class RotateAllPiecesWithExpansion(ShowProjection):self.add(ghost_sphere, sphere)self.wait()if self.with_expansion:- self.play(OldLaggedStart(+ self.play(LaggedStartMap(MoveToTarget, sphere))self.wait()@@ -2346,7 +2346,7 @@ class WhatIsSurfaceArea(SpecialThreeDScene):self.set_camera_to_default_position()self.begin_ambient_camera_rotation()# self.add(self.get_axes())- self.play(OldLaggedStart(+ self.play(LaggedStartMap(DrawBorderThenFill, pieces,lag_ratio=0.2,))@@ -2654,15 +2654,15 @@ class AskAboutDirectConnection(TeacherStudentsScene, SpecialThreeDScene):*3 * ["pondering"],look_at_arg=group,),- OldLaggedStart(FadeInFromDown, group),- OldLaggedStart(GrowArrow, arrows)+ LaggedStartMap(FadeInFromDown, group),+ LaggedStartMap(GrowArrow, arrows))self.wait()self.play(self.teacher.change, "pondering",self.students[2].change, "raise_right_hand",GrowArrow(direct_arrow),- OldLaggedStart(+ LaggedStartMap(FadeInFrom, q_marks,lambda m: (m, UP),lag_ratio=0.8,@@ -2695,7 +2695,7 @@ class ExercisesGiveLearning(MovingCameraScene):# Knock down lecturesself.add(lectures)self.play(GrowArrow(arrow1))- self.play(OldLaggedStart(DrawBorderThenFill, bulb))+ self.play(LaggedStartMap(DrawBorderThenFill, bulb))self.play(ShowCreation(cross))self.play(VGroup(lectures, cross).shift, DOWN,@@ -2825,7 +2825,7 @@ class SecondProof(SpecialThreeDScene):self.add(ghost_rings)self.play(FadeOut(rings), Animation(shadows))- self.play(OldLaggedStart(Restore, shadows))+ self.play(LaggedStartMap(Restore, shadows))self.wait()self.move_camera(phi=40 * DEGREES)self.wait(3)@@ -3158,11 +3158,11 @@ class SecondProof(SpecialThreeDScene):self.play(FadeOut(to_fade),- OldLaggedStart(FadeIn, shadows),+ LaggedStartMap(FadeIn, shadows),self.theta_mob_opacity_tracker.set_value, 0,)self.play(- OldLaggedStart(Restore, shadows),+ LaggedStartMap(Restore, shadows),ApplyMethod(self.camera.phi_tracker.set_value, 60 * DEGREES,),diff --git a/old_projects/triples.py b/old_projects/triples.pyindex 4226e2195..c94acd9e8 100644--- a/old_projects/triples.py+++ b/old_projects/triples.py@@ -100,11 +100,11 @@ class IntroduceTriples(TeacherStudentsScene):FadeIn(triangle),self.teacher.change_mode, "raise_right_hand")- self.play(OldLaggedStart(FadeIn, a_square))+ self.play(LaggedStartMap(FadeIn, a_square))self.change_student_modes(*["pondering"]*3,look_at_arg = triangle,- added_anims = [OldLaggedStart(FadeIn, b_square)]+ added_anims = [LaggedStartMap(FadeIn, b_square)])self.play(self.teacher.change_mode, "happy")for start, target in zip([a_square, b_square], c_square_parts):@@ -254,7 +254,7 @@ class ShowManyTriples(Scene):)self.wait()self.play(FadeOut(triangle))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeIn,VGroup(*[title.target@@ -301,7 +301,7 @@ class BabylonianTablets(Scene):self.add(title)self.wait()- self.play(OldLaggedStart(FadeIn, triples, run_time = 5))+ self.play(LaggedStartMap(FadeIn, triples, run_time = 5))self.wait()class AskAboutFavoriteProof(TeacherStudentsScene):@@ -403,7 +403,7 @@ class PythagoreanProof(Scene):label.target.move_to(square)square.add(label)- self.play(OldLaggedStart(MoveToTarget, side_labels))+ self.play(LaggedStartMap(MoveToTarget, side_labels))def add_new_triangles(self, triangle, added_triangles):brace = Brace(added_triangles, DOWN)@@ -548,7 +548,7 @@ class ReframeOnLattice(PiCreatureScene):for new_group in dot_tuple_groups[1:len(initial_examples)]:self.play(Transform(dot_tuple_group, new_group))self.wait()- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeIn, all_dots,rate_func = there_and_back,run_time = 3,@@ -1506,7 +1506,7 @@ class WriteGeneralFormula(GeneralExample):uv_title, triple_title])))self.play(*[- OldLaggedStart(+ LaggedStartMap(FadeIn, mob,run_time = 5,lag_ratio = 0.2@@ -1685,7 +1685,7 @@ class VisualizeZSquared(Scene):dots.sort(lambda p : np.dot(p, UP+RIGHT))self.add_foreground_mobject(self.coordinate_labels)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(DrawBorderThenFill, dots,stroke_width = 3,stroke_color = PINK,@@ -1701,7 +1701,7 @@ class VisualizeZSquared(Scene):self.play(self.background_planes.set_stroke, None, 1,- OldLaggedStart(+ LaggedStartMap(FadeIn, color_grid,run_time = 2),@@ -1730,7 +1730,7 @@ class VisualizeZSquared(Scene):self.play(self.color_grid.set_stroke, None, 3)self.wait()scale_factor = self.big_dot_radius/self.dot_radius- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyMethod, self.dots,lambda d : (d.scale_in_place, scale_factor),rate_func = there_and_back,@@ -2053,7 +2053,7 @@ class DrawSingleRadialLine(PointsWeMiss):self.play(Indicate(dot))self.play(ShowCreation(line), Animation(dot))self.wait()- self.play(OldLaggedStart(+ self.play(LaggedStartMap(DrawBorderThenFill, added_dots,stroke_color = PINK,stroke_width = 4,@@ -2146,7 +2146,7 @@ class DrawRadialLines(PointsWeMiss):)self.play(ReplacementTransform(dot, line))self.wait()- self.play(OldLaggedStart(+ self.play(LaggedStartMap(DrawBorderThenFill, line.new_dots,stroke_width = 4,stroke_color = PINK,@@ -2162,7 +2162,7 @@ class DrawRadialLines(PointsWeMiss):dot.target.scale_in_place(1.5)dot.target.set_color(RED)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(MoveToTarget, seed_dots,run_time = 2))@@ -2171,7 +2171,7 @@ class DrawRadialLines(PointsWeMiss):run_time = 3,lag_ratio = 0.5))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(DrawBorderThenFill, new_dots,stroke_width = 4,stroke_color = PINK,@@ -2441,7 +2441,7 @@ class ProjectPointsOntoUnitCircle(DrawRadialLines):)dot.target.set_width(0.01)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(MoveToTarget, dots,run_time = 3,lag_ratio = 0.2@@ -2470,7 +2470,7 @@ class ProjectPointsOntoUnitCircle(DrawRadialLines):for vect in compass_directions(1000)])- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ShowCreation, lines,run_time = 3))diff --git a/old_projects/turbulence.py b/old_projects/turbulence.pyindex 287fa4d4e..52ec382fd 100644--- a/old_projects/turbulence.py+++ b/old_projects/turbulence.py@@ -374,7 +374,7 @@ class EddyReference(Scene):label.next_to(new_eddy, UP)self.play(- OldLaggedStart(ShowCreationThenDestruction, new_eddy),+ LaggedStartMap(ShowCreationThenDestruction, new_eddy),FadeIn(label,rate_func=there_and_back_with_pause,@@ -462,7 +462,7 @@ class SomeTurbulenceEquations(PiCreatureScene):self.wait(3)dist_group = VGroup(distribution, brace_group)self.play(- OldLaggedStart(FadeOut, VGroup(randy, morty, navier_stokes)),+ LaggedStartMap(FadeOut, VGroup(randy, morty, navier_stokes)),dist_group.scale, 1.5,dist_group.center,dist_group.to_edge, UP,@@ -511,7 +511,7 @@ class JokeRingEquation(Scene):ShowCreation(arrows[i]))self.wait()- self.play(OldLaggedStart(FadeIn, items[2:]))+ self.play(LaggedStartMap(FadeIn, items[2:]))self.wait()self.play(FadeOut(arrows))self.wait()@@ -588,7 +588,7 @@ class CarefulWithLasers(TeacherStudentsScene):)laser.add_updater(update_laser)- self.play(OldLaggedStart(FadeInFromDown, self.pi_creatures, run_time=1))+ self.play(LaggedStartMap(FadeInFromDown, self.pi_creatures, run_time=1))self.add(self.pi_creatures, laser)for pi in self.pi_creatures:pi.add_updater(lambda p: p.look_at(laser[1]))@@ -711,7 +711,7 @@ class AskAboutTurbulence(TeacherStudentsScene):)self.play(ShowCreation(h_line),- OldLaggedStart(+ LaggedStartMap(FadeOutAndShiftDown, self.pi_creatures,run_time=1,lag_ratio=0.8@@ -736,7 +736,7 @@ class AskAboutTurbulence(TeacherStudentsScene):words[1].shift(FRAME_WIDTH * RIGHT / 4)self.play(ShowCreation(v_line),- OldLaggedStart(FadeInFromDown, words)+ LaggedStartMap(FadeInFromDown, words))self.wait()@@ -1006,7 +1006,7 @@ class ShowNavierStokesEquations(Scene):self.play(FadeInFromDown(equations))self.play(Write(name))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeInFrom, variables,lambda m: (m, RIGHT),))@@ -1019,9 +1019,9 @@ class ShowNavierStokesEquations(Scene):)self.play(ShowCreationThenFadeAround(parts[0]))self.wait()- self.play(OldLaggedStart(FadeInFrom, labels[1:]))+ self.play(LaggedStartMap(FadeInFrom, labels[1:]))self.wait(3)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeOut, VGroup(*it.chain(labels, variables, newtons_second))))@@ -1089,7 +1089,7 @@ class ShowNavierStokesEquations(Scene):self.wait(2)to_fade = VGroup(question, q_arrow, axes, graph)self.play(- OldLaggedStart(FadeOut, to_fade),+ LaggedStartMap(FadeOut, to_fade),morty.change, "pondering")self.wait(2)@@ -1196,7 +1196,7 @@ class NewtonsSecond(Scene):self.wait()square.restore()self.play(- OldLaggedStart(GrowArrow, arrows)+ LaggedStartMap(GrowArrow, arrows))square.add(arrows)self.play(@@ -1243,7 +1243,7 @@ class FiguresOfFluidDynamics(Scene):image_groups.arrange_in_grid(2, 3)image_groups.set_height(FRAME_HEIGHT - 1)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeInFromDown, image_groups,lag_ratio=0.5,run_time=3@@ -1582,7 +1582,7 @@ class VortedStretching(ThreeDScene):flow_lines = self.get_flow_lines(circles)self.add(circles, flow_lines)- self.play(OldLaggedStart(ShowCreation, circles))+ self.play(LaggedStartMap(ShowCreation, circles))self.wait(5)self.play(Transform(circles, tall_circles, run_time=3))self.wait(10)diff --git a/old_projects/uncertainty.py b/old_projects/uncertainty.pyindex da5cb2a80..3ecbfa942 100644--- a/old_projects/uncertainty.py+++ b/old_projects/uncertainty.py@@ -756,7 +756,7 @@ class TwoCarsAtRedLight(Scene):self.play(self.get_flashes(car1, num_flashes = 2),self.get_flashes(car2, num_flashes = 2),- OldLaggedStart(FadeIn, VGroup(+ LaggedStartMap(FadeIn, VGroup(axes, time_label, y_title,)))@@ -866,7 +866,7 @@ class TwoCarsAtRedLight(Scene):freq_graph.points[0] = frequency_axes.coords_to_point(0, 0)freq_graph.points[-1] = frequency_axes.coords_to_point(2, 0)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeOut, VGroup(self.time_graph_label,self.frequency_graph_label,@@ -1181,7 +1181,7 @@ class FourierRecapScene(DrawFrequencyPlot):)self.wait()self.play(- OldLaggedStart(FadeIn, self.frequency_axes),+ LaggedStartMap(FadeIn, self.frequency_axes),ReplacementTransform(time_graph.copy(),fourier_graph,@@ -1195,7 +1195,7 @@ class FourierRecapScene(DrawFrequencyPlot):),)self.wait()- self.play(OldLaggedStart(+ self.play(LaggedStartMap(Indicate, self.frequency_axes.x_axis.numbers,run_time = 4,rate_func = wiggle,@@ -1786,7 +1786,7 @@ class IntroduceDopplerRadar(Scene):self.remove(graph_draw, pulse, randy_look_at, axes_anim)self.add(axes)- self.play(OldLaggedStart(FadeOut, VGroup(+ self.play(LaggedStartMap(FadeOut, VGroup(sum_graph, randy,pulse_graph.arrow, pulse_graph.label,echo_graph.arrow, echo_graph.label,@@ -2054,7 +2054,7 @@ class DopplerFormulaInsert(Scene):self.add(randy)self.play(- OldLaggedStart(FadeIn, formula),+ LaggedStartMap(FadeIn, formula),randy.change, "pondering", randy.get_bottom(),)self.play(Blink(randy))@@ -2219,11 +2219,11 @@ class TimeAndFrequencyGivePositionAndVelocity(IntroduceDopplerRadar):self.play(ShowCreation(graph))self.play(GrowArrow(arrow),- OldLaggedStart(FadeIn, time, run_time = 1)+ LaggedStartMap(FadeIn, time, run_time = 1))self.play(GrowFromCenter(brace),- OldLaggedStart(FadeIn, frequency, run_time = 1)+ LaggedStartMap(FadeIn, frequency, run_time = 1))self.wait()self.play(@@ -2411,7 +2411,7 @@ class AmbiguityInLongEchos(IntroduceDopplerRadar, PiCreatureScene):look_at_arg = brace,))self.play(Blink(randy))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(FadeOut, VGroup(randy.bubble, randy.bubble.content,brace, words,@@ -2453,7 +2453,7 @@ class AmbiguityInLongEchos(IntroduceDopplerRadar, PiCreatureScene):pulses = self.get_pulses()self.play(- OldLaggedStart(GrowFromCenter, objects[1:]),+ LaggedStartMap(GrowFromCenter, objects[1:]),FadeOut(curr_graph),randy.change, "pondering")@@ -2544,8 +2544,8 @@ class AmbiguityInLongEchos(IntroduceDopplerRadar, PiCreatureScene):{"buff" : SMALL_BUFF},rate_func = squish_rate_func(smooth, 0.5, 1)),- OldLaggedStart(FadeOut, self.objects),- OldLaggedStart(FadeOut, VGroup(+ LaggedStartMap(FadeOut, self.objects),+ LaggedStartMap(FadeOut, VGroup(self.curr_graph, self.dish, self.pi_creature)),run_time = 2@@ -2618,7 +2618,7 @@ class AmbiguityInLongEchos(IntroduceDopplerRadar, PiCreatureScene):self.play(FadeOut(self.axes),FadeOut(self.first_echo_graph),- OldLaggedStart(FadeIn, objects),+ LaggedStartMap(FadeIn, objects),FadeIn(self.dish))self.add(*continual_anims)@@ -3126,10 +3126,10 @@ class ShowMomentumFormula(IntroduceDeBroglie, TeacherStudentsScene):xi_words.next_to, added_xi_words, UP,)self.play(- OldLaggedStart(ShowCreation, v_lines),+ LaggedStartMap(ShowCreation, v_lines),self.get_student_changes(*["pondering"]*3))- self.play(OldLaggedStart(FadeOut, v_lines))+ self.play(LaggedStartMap(FadeOut, v_lines))self.wait()self.formula_labels = VGroup(@@ -3458,7 +3458,7 @@ class HangingWeightsScene(MovingCameraScene):self.play(ShowCreation(ceiling),- OldLaggedStart(ShowCreation, springs)+ LaggedStartMap(ShowCreation, springs))def setup_weights(self):@@ -3481,7 +3481,7 @@ class HangingWeightsScene(MovingCameraScene):weights.set_color_by_gradient(BLUE_D, BLUE_E, BLUE_D)weights.set_stroke(WHITE, 1)- self.play(OldLaggedStart(GrowFromCenter, weights))+ self.play(LaggedStartMap(GrowFromCenter, weights))self.add(self.t_tracker_walk)self.add(self.spring_update_anim)self.add(*weight_anims)@@ -4448,7 +4448,7 @@ class Promotion(PiCreatureScene):)self.wait(2)self.play(- OldLaggedStart(+ LaggedStartMap(ApplyFunction, aops_logo,lambda mob : (lambda m : m.shift(0.2*UP).set_color(YELLOW), mob),rate_func = there_and_back,@@ -4537,7 +4537,7 @@ class PuzzleStatement(Scene):""", alignment = "")words.set_width(FRAME_WIDTH - 2)words.next_to(group, DOWN, LARGE_BUFF)- self.play(OldLaggedStart(FadeIn, words, run_time = 5, lag_ratio = 0.2))+ self.play(LaggedStartMap(FadeIn, words, run_time = 5, lag_ratio = 0.2))self.wait(2)class UncertaintyEndScreen(PatreonEndScreen):diff --git a/old_projects/wallis.py b/old_projects/wallis.pyindex 433d1cc2e..06791ec42 100644--- a/old_projects/wallis.py+++ b/old_projects/wallis.py@@ -431,11 +431,11 @@ class SridharWatchingScene(PiCreatureScene):basel.set_color(YELLOW)wallis.set_color(BLUE)- self.play(OldLaggedStart(DrawBorderThenFill, laptop))+ self.play(LaggedStartMap(DrawBorderThenFill, laptop))self.play(sridhar.change, "pondering", laptop.screen)self.wait()self.play(ShowCreation(bubble))- self.play(OldLaggedStart(FadeIn, basel))+ self.play(LaggedStartMap(FadeIn, basel))self.play(ReplacementTransform(basel.copy(), wallis),GrowFromPoint(arrow, arrow.get_top())@@ -443,7 +443,7 @@ class SridharWatchingScene(PiCreatureScene):self.wait(4)self.play(sridhar.change, "thinking", wallis)self.wait(4)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyFunction,VGroup(*list(laptop) + [bubble, basel, arrow, wallis, sridhar]),lambda mob: (lambda m: m.set_color(BLACK).fade(1).scale(0.8), mob),@@ -534,8 +534,8 @@ class ShowProduct(Scene):self.wait(0.5)N = len(parts)self.play(- OldLaggedStart(ShowCreation, lines[N - 1:], lag_ratio=0.2),- OldLaggedStart(FadeIn, dots[N:], lag_ratio=0.2),+ LaggedStartMap(ShowCreation, lines[N - 1:], lag_ratio=0.2),+ LaggedStartMap(FadeIn, dots[N:], lag_ratio=0.2),brace.stretch, 1.2, 0, {"about_edge": LEFT},ChangeDecimalToValue(decimal, partial_products[-1],@@ -618,7 +618,7 @@ class ShowProduct(Scene):self.play(ShowCreation(lines),- OldLaggedStart(FadeIn, dots, lag_ratio=0.1),+ LaggedStartMap(FadeIn, dots, lag_ratio=0.1),run_time=3,rate_func=linear,)@@ -1018,8 +1018,8 @@ class DistanceProductScene(MovingCameraScene):if not hasattr(self, "numeric_distance_labels"):self.get_numeric_distance_labels()if show_line_creation:- anims.append(OldLaggedStart(ShowCreation, self.distance_lines))- anims.append(OldLaggedStart(FadeIn, self.numeric_distance_labels))+ anims.append(LaggedStartMap(ShowCreation, self.distance_lines))+ anims.append(LaggedStartMap(FadeIn, self.numeric_distance_labels))self.play(*anims)@@ -1083,8 +1083,8 @@ class IntroduceDistanceProduct(DistanceProductScene):self.play(ShowCreation(circle))self.play(- OldLaggedStart(ShowCreation, lh_dots),- OldLaggedStart(GrowArrow, lh_dot_arrows),+ LaggedStartMap(ShowCreation, lh_dots),+ LaggedStartMap(GrowArrow, lh_dot_arrows),Write(evenly_space_dots_label))self.wait()@@ -1108,9 +1108,9 @@ class IntroduceDistanceProduct(DistanceProductScene):observer.to_edge(RIGHT)self.play(- OldLaggedStart(FadeOut, self.lh_dots),- OldLaggedStart(FadeIn, lighthouses),- OldLaggedStart(SwitchOn, lights),+ LaggedStartMap(FadeOut, self.lh_dots),+ LaggedStartMap(FadeIn, lighthouses),+ LaggedStartMap(SwitchOn, lights),)self.wait()self.play(FadeIn(observer))@@ -1160,8 +1160,8 @@ class IntroduceDistanceProduct(DistanceProductScene):light_rings = VGroup(*it.chain(*self.lights))self.play(- OldLaggedStart(ShowCreation, lines),- OldLaggedStart(Write, labels),+ LaggedStartMap(ShowCreation, lines),+ LaggedStartMap(Write, labels),)circle_group = VGroup(*self.get_top_level_mobjects())self.wait()@@ -1181,7 +1181,7 @@ class IntroduceDistanceProduct(DistanceProductScene):circle_group.scale, 0.8, {"about_point": FRAME_Y_RADIUS * DOWN})self.wait()- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyMethod, light_rings,lambda m: (m.set_fill, {"opacity": 2 * m.get_fill_opacity()}),rate_func=there_and_back,@@ -1255,9 +1255,9 @@ class IntroduceDistanceProduct(DistanceProductScene):Write(distance_product_label))line_copies = lines.copy().set_color(RED)- self.play(OldLaggedStart(ShowCreationThenDestruction, line_copies))+ self.play(LaggedStartMap(ShowCreationThenDestruction, line_copies))self.wait()- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyFunction, light_rings,lambda mob: (lambda m: m.shift(@@ -1329,7 +1329,7 @@ class Lemma1(DistanceProductScene):def add_circle_group(self):self.circle.to_corner(DL)circle_group = self.get_circle_group()- self.play(OldLaggedStart(FadeIn, VGroup(+ self.play(LaggedStartMap(FadeIn, VGroup(*circle_group.family_members_with_points())))def state_lemma_premise(self):@@ -1661,12 +1661,12 @@ class FromGeometryToAlgebra(DistanceProductScene):arrows.set_color(YELLOW)self.play(ReplacementTransform(unit_circle_words, roots_of_unity_words),- OldLaggedStart(GrowArrow, arrows)+ LaggedStartMap(GrowArrow, arrows))self.wait()self.play(complex_plane_words.move_to, word_group,- OldLaggedStart(FadeOut, VGroup(*it.chain(+ LaggedStartMap(FadeOut, VGroup(*it.chain(arrows, roots_of_unity_words))))@@ -1905,11 +1905,11 @@ class FromGeometryToAlgebra(DistanceProductScene):n_term.shift(0.25 * SMALL_BUFF * DR)n_terms.add(n_term)- self.play(OldLaggedStart(FadeOut, VGroup(*it.chain(+ self.play(LaggedStartMap(FadeOut, VGroup(*it.chain(L1_rhs, self.outer_arrows, self.L_labels, self.outer_arrow,self.angle_line, self.ghost_angle_line))))- self.play(OldLaggedStart(SwitchOn, new_lights), morty.look_at, new_lights)+ self.play(LaggedStartMap(SwitchOn, new_lights), morty.look_at, new_lights)self.play(Transform(sevens, n_terms))self.wait()self.play(Blink(morty))@@ -2087,7 +2087,7 @@ class PlugObserverIntoPolynomial(DistanceProductScene):# Show distancesself.play(ShowCreation(rhs_rect))self.play(- OldLaggedStart(ShowCreation, lines),+ LaggedStartMap(ShowCreation, lines),Animation(dot))@@ -2248,7 +2248,7 @@ class PlugObserverIntoPolynomial(DistanceProductScene):# Talk through current examplelight_rings = VGroup(*it.chain(self.lights))- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyMethod, light_rings,lambda m: (m.shift, MED_SMALL_BUFF * UP),rate_func=wiggle@@ -2660,8 +2660,8 @@ class DistanceProductIsChordF(PlugObserverIntoPolynomial):self.play(Write(fraction_words))self.wait()self.play(- OldLaggedStart(ShowCreation, lines),- OldLaggedStart(FadeIn, labels),+ LaggedStartMap(ShowCreation, lines),+ LaggedStartMap(FadeIn, labels),)self.play(FadeIn(black_rect),@@ -2771,8 +2771,8 @@ class ProveLemma2(PlugObserverIntoPolynomial):*list(map(SurroundingRectangle, [dot, stacked_labels[0]])))self.play(- OldLaggedStart(ShowCreation, lines),- OldLaggedStart(FadeIn, labels),+ LaggedStartMap(ShowCreation, lines),+ LaggedStartMap(FadeIn, labels),)self.play(FadeIn(black_rect),@@ -2840,7 +2840,7 @@ class ProveLemma2(PlugObserverIntoPolynomial):self.play(ShowCreation(lhs_rect))self.add_foreground_mobject(roots_of_unity_circle)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(ApplyMethod, roots_of_unity_circle,lambda m: (m.restore,)))@@ -3021,8 +3021,8 @@ class ArmedWithTwoKeyFacts(TeacherStudentsScene, DistanceProductScene):group = VGroup(lines, observer, label)self.play(FadeIn(circle),- OldLaggedStart(FadeIn, VGroup(*it.chain(lights))),- OldLaggedStart(+ LaggedStartMap(FadeIn, VGroup(*it.chain(lights))),+ LaggedStartMap(FadeIn, VGroup(*it.chain(group.family_members_with_points()))),@@ -3031,7 +3031,7 @@ class ArmedWithTwoKeyFacts(TeacherStudentsScene, DistanceProductScene):)wallis_product.move_to(labels).to_edge(RIGHT)self.play(- OldLaggedStart(FadeIn, wallis_product),+ LaggedStartMap(FadeIn, wallis_product),self.teacher.change_mode, "hooray",self.get_student_changes(*["thinking"] * 3, look_at_arg=wallis_product)@@ -3128,9 +3128,9 @@ class KeeperAndSailor(DistanceProductScene, PiCreatureScene):self.add_foreground_mobject(lights)self.add_foreground_mobject(words)self.play(- OldLaggedStart(FadeIn, VGroup(*it.chain(lights))),- OldLaggedStart(FadeIn, lighthouses),- OldLaggedStart(GrowArrow, arrows),+ LaggedStartMap(FadeIn, VGroup(*it.chain(lights))),+ LaggedStartMap(FadeIn, lighthouses),+ LaggedStartMap(GrowArrow, arrows),)self.remove_foreground_mobjects(words)self.play(FadeOut(words), FadeOut(arrows))@@ -3149,7 +3149,7 @@ class KeeperAndSailor(DistanceProductScene, PiCreatureScene):pi.dot.next_to(pi, LEFT)pi.dot.set_fill(opacity=0)- self.play(OldLaggedStart(+ self.play(LaggedStartMap(Succession, observers,lambda m: (FadeIn, m, ApplyMethod, m.change, "wave_1")))@@ -3253,7 +3253,7 @@ class KeeperAndSailor(DistanceProductScene, PiCreatureScene):ShowCreation(fraction[1]))self.wait()- self.play(OldLaggedStart(FadeIn, sailor_line_lengths))+ self.play(LaggedStartMap(FadeIn, sailor_line_lengths))self.play(ReplacementTransform(sailor_line_lengths.copy(), sailor_dp_column[0]))@@ -3376,10 +3376,10 @@ class KeeperAndSailor(DistanceProductScene, PiCreatureScene):# Animationsself.replace_lighthouses_with_labels()self.play(- OldLaggedStart(FadeIn, product_parts),- OldLaggedStart(FadeIn, sailor_lines,+ LaggedStartMap(FadeIn, product_parts),+ LaggedStartMap(FadeIn, sailor_lines,rate_func=there_and_back, remover=True),- OldLaggedStart(FadeIn, keeper_lines,+ LaggedStartMap(FadeIn, keeper_lines,rate_func=there_and_back, remover=True),)sailor_lines.restore()@@ -3662,7 +3662,7 @@ class KeeperAndSailor(DistanceProductScene, PiCreatureScene):cw_product_parts.restore,)term_rect = cw_term_rects[0].copy()- self.play(OldLaggedStart(ShowCreationThenDestruction, cw_label_rects))+ self.play(LaggedStartMap(ShowCreationThenDestruction, cw_label_rects))self.wait()self.play(FadeIn(term_rect),@@ -4156,7 +4156,7 @@ class HowThisArgumentRequiresCommunitingLimits(PiCreatureScene):look_at_arg=factors,),morty.change, "pondering", factors,- OldLaggedStart(FadeIn, factors),+ LaggedStartMap(FadeIn, factors),)self.wait()self.play(@@ -4165,8 +4165,8 @@ class HowThisArgumentRequiresCommunitingLimits(PiCreatureScene):)self.wait()self.play(- OldLaggedStart(GrowArrow, fraction_limit_arrows),- OldLaggedStart(+ LaggedStartMap(GrowArrow, fraction_limit_arrows),+ LaggedStartMap(FadeInFrom, fraction_limits,direction=UP),@@ -4175,7 +4175,7 @@ class HowThisArgumentRequiresCommunitingLimits(PiCreatureScene):)self.wait()self.play(- OldLaggedStart(FadeIn, mult_signs),+ LaggedStartMap(FadeIn, mult_signs),FadeIn(lower_equals),mathy.change, "sassy",)@@ -4323,12 +4323,12 @@ class NonCommunitingLimitsExample(Scene):self.add(rows)self.wait()- self.play(OldLaggedStart(ShowCreation, row_rects))+ self.play(LaggedStartMap(ShowCreation, row_rects))self.wait(2)row_products_iter = iter(row_products)self.play(- OldLaggedStart(Write, row_arrows),- OldLaggedStart(+ LaggedStartMap(Write, row_arrows),+ LaggedStartMap(ReplacementTransform, rows[:-1].copy(),lambda r: (r, next(row_products_iter)))@@ -4338,13 +4338,13 @@ class NonCommunitingLimitsExample(Scene):self.play(Write(row_product_limit))self.wait()- self.play(OldLaggedStart(FadeOut, row_rects))- self.play(OldLaggedStart(FadeIn, column_rects))+ self.play(LaggedStartMap(FadeOut, row_rects))+ self.play(LaggedStartMap(FadeIn, column_rects))self.wait()column_limit_iter = iter(column_limits)self.play(- OldLaggedStart(Write, column_arrows),- OldLaggedStart(+ LaggedStartMap(Write, column_arrows),+ LaggedStartMap(ReplacementTransform, columns.copy(),lambda c: (c, next(column_limit_iter)))@@ -4440,8 +4440,8 @@ class DelicacyInIntermixingSeries(Scene):# Show initial productsself.play(- OldLaggedStart(FadeIn, top_product),- OldLaggedStart(FadeIn, bottom_product),+ LaggedStartMap(FadeIn, top_product),+ LaggedStartMap(FadeIn, bottom_product),)self.wait()for product in products:@@ -4510,7 +4510,7 @@ class DelicacyInIntermixingSeries(Scene):self.play(FadeOut(q_marks),- OldLaggedStart(+ LaggedStartMap(MoveToTarget, movers1,run_time=5,lag_ratio=0.2,@@ -4526,7 +4526,7 @@ class DelicacyInIntermixingSeries(Scene):self.wait()self.play(Blink(randy))self.wait()- self.play(OldLaggedStart(+ self.play(LaggedStartMap(Transform, movers2,lambda m: (m, m.final_position),run_time=3,@@ -4645,7 +4645,7 @@ class KeeperAndSailorForSineProduct(KeeperAndSailor):self.play(ShowCreation(sailor_dp_rect),- OldLaggedStart(ShowCreation, sailor_lines),+ LaggedStartMap(ShowCreation, sailor_lines),)self.wait()self.play(ShowCreation(two_cross))@@ -4662,7 +4662,7 @@ class KeeperAndSailorForSineProduct(KeeperAndSailor):))self.wait()- self.play(OldLaggedStart(FadeOut, VGroup(+ self.play(LaggedStartMap(FadeOut, VGroup(sailor_lines, sailor_dp_rect, two_group)))@@ -4707,7 +4707,7 @@ class KeeperAndSailorForSineProduct(KeeperAndSailor):)fraction_words.target.next_to(fraction_brace.target, LEFT, SMALL_BUFF)- self.play(OldLaggedStart(FadeIn, group))+ self.play(LaggedStartMap(FadeIn, group))self.grow_circle_and_N(added_anims=[MoveToTarget(fraction_brace),@@ -4785,9 +4785,9 @@ class KeeperAndSailorForSineProduct(KeeperAndSailor):product_lines.set_color(YELLOW)self.play(- OldLaggedStart(FadeIn, fractions),+ LaggedStartMap(FadeIn, fractions),*[- OldLaggedStart(+ LaggedStartMap(FadeIn, VGroup(*list(lines[-10:]) + list(lines[1:10])),rate_func=there_and_back,remover=True,@@ -4799,12 +4799,12 @@ class KeeperAndSailorForSineProduct(KeeperAndSailor):)self.wait()self.play(- OldLaggedStart(GrowArrow, limit_arrows),- OldLaggedStart(+ LaggedStartMap(GrowArrow, limit_arrows),+ LaggedStartMap(FadeInFrom, limits,lambda m: (m, UP),),- OldLaggedStart(FadeIn, dots)+ LaggedStartMap(FadeIn, dots))self.wait()self.play(@@ -4882,7 +4882,7 @@ class KeeperAndSailorForSineProduct(KeeperAndSailor):pair.target[1].move_to(pair[0], DOWN)self.play(- OldLaggedStart(+ LaggedStartMap(MoveToTarget, pairs,path_arc=180 * DEGREES,run_time=3,@@ -4948,7 +4948,7 @@ class KeeperAndSailorForSineProduct(KeeperAndSailor):self.play(ShowCreation(rect),- OldLaggedStart(ApplyMethod, pi_creatures, lambda m: (m.restore,))+ LaggedStartMap(ApplyMethod, pi_creatures, lambda m: (m.restore,)))for x in range(4):self.play(Blink(random.choice(pi_creatures)))@@ -5012,7 +5012,7 @@ class Conclusion(TeacherStudentsScene):euler.next_to(sine_formula, UP)self.play(FadeIn(euler),- OldLaggedStart(FadeIn, basel_problem),+ LaggedStartMap(FadeIn, basel_problem),self.teacher.change, "happy",self.get_student_changes("sassy", "confused", "hesitant"))diff --git a/old_projects/waves.py b/old_projects/waves.pyindex c3eab6ae0..5ee6c798d 100644--- a/old_projects/waves.py+++ b/old_projects/waves.py@@ -602,7 +602,7 @@ class IntroduceElectricField(PiCreatureScene):morty = self.pi_creaturevector_field = self.get_vector_field()self.play(- OldLaggedStart(+ LaggedStartMap(ShowCreation, vector_field,run_time = 3),@@ -661,7 +661,7 @@ class IntroduceElectricField(PiCreatureScene):self.play(FadeOut(self.force_vector),- OldLaggedStart(FadeIn, VGroup(*particles[1:]))+ LaggedStartMap(FadeIn, VGroup(*particles[1:])))self.moving_particles = particlesself.add_foreground_mobjects(self.moving_particles, self.pi_creature)@@ -750,7 +750,7 @@ class IntroduceMagneticField(IntroduceElectricField, ThreeDScene):vector_field = self.get_vector_field()self.play(- OldLaggedStart(ShowCreation, vector_field, run_time = 3),+ LaggedStartMap(ShowCreation, vector_field, run_time = 3),Animation(self.title))self.wait()@@ -1043,7 +1043,7 @@ class ListRelevantWaveIdeas(TeacherStudentsScene):)self.change_student_modes(*["pondering"]*3,- added_anims = [OldLaggedStart(+ added_anims = [LaggedStartMap(FadeIn, topics,run_time = 3)],@@ -1471,7 +1471,7 @@ class ShowVectorEquation(Scene):self.play(*list(map(Write, [right_ket, plus, up_ket])), run_time = 1)self.play(Write(kets_word),- OldLaggedStart(ShowCreation, arrows, lag_ratio = 0.7),+ LaggedStartMap(ShowCreation, arrows, lag_ratio = 0.7),run_time = 2,)self.wait()