Get rid of lagged_start

This commit is contained in:
Grant Sanderson 2019-02-08 15:53:27 -08:00
parent cf92cd161e
commit 64eb670027
65 changed files with 291 additions and 291 deletions

View file

@ -165,7 +165,7 @@ class IntroducePokerHand(PiCreatureScene, SampleSpaceScene):
new_symbol.replace(heart, dim_to_match = 1) new_symbol.replace(heart, dim_to_match = 1)
self.play(Transform( self.play(Transform(
hearts, new_symbols, hearts, new_symbols,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.wait() self.wait()
self.play(FadeOut(heart_qs)) self.play(FadeOut(heart_qs))

View file

@ -35,7 +35,7 @@ class Introduction(TeacherStudentsScene):
self.play( self.play(
FadeIn( FadeIn(
series, series,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 2 run_time = 2
), ),
Blink(self.get_teacher()) Blink(self.get_teacher())

View file

@ -35,7 +35,7 @@ class Introduction(TeacherStudentsScene):
self.play( self.play(
FadeIn( FadeIn(
series, series,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 2 run_time = 2
), ),
Blink(self.get_teacher()) Blink(self.get_teacher())

View file

@ -4,7 +4,7 @@ from active_projects.eop.reusable_imports import *
class Chapter1OpeningQuote(OpeningQuote): class Chapter1OpeningQuote(OpeningQuote):
CONFIG = { CONFIG = {
"fade_in_kwargs": { "fade_in_kwargs": {
"submobject_mode": "lagged_start", "lag_ratio": 0.5,
"rate_func": linear, "rate_func": linear,
"lag_factor": 9, "lag_factor": 9,
"run_time": 10, "run_time": 10,

View file

@ -76,7 +76,7 @@ class QuizResult(PiCreatureScene):
self.play(ReplacementTransform( self.play(ReplacementTransform(
VGroup(master_quiz), all_quizzes, VGroup(master_quiz), all_quizzes,
run_time=2, run_time=2,
submobject_mode="lagged_start" lag_ratio=0.5
)) ))
self.wait(2) self.wait(2)

View file

@ -222,7 +222,7 @@ class InitialFiveChooseThreeExample(Scene):
self.play(FadeIn( self.play(FadeIn(
stack, stack,
run_time = 0.2*len(stack), run_time = 0.2*len(stack),
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.wait() self.wait()
@ -650,7 +650,7 @@ class SixChooseThreeInOtherContext(Scene):
# eq.next_to(stack, UP) # eq.next_to(stack, UP)
# self.play( # self.play(
# FadeIn(stacks, run_time = 2, submobject_mode = "lagged_start"), # FadeIn(stacks, run_time = 2, lag_ratio = 0.5),
# self.n_choose_k_group.to_edge, UP # self.n_choose_k_group.to_edge, UP
# ) # )
# new_words.move_to(n_choose_k_words, LEFT) # new_words.move_to(n_choose_k_words, LEFT)
@ -785,7 +785,7 @@ class SixChooseThreeInOtherContext(Scene):
# def add_n_choose_k_term(self): # def add_n_choose_k_term(self):
# term = TexMobject("{5 \\choose 3} = 10") # term = TexMobject("{5 \\choose 3} = 10")
# term.to_edge(UP) # term.to_edge(UP)
# self.play(FadeIn(term, submobject_mode = "lagged_start")) # self.play(FadeIn(term, lag_ratio = 0.5))
# self.wait() # self.wait()
# self.n_choose_k_term = term # self.n_choose_k_term = term
@ -2102,7 +2102,7 @@ class StacksApproachBellCurve(Scene):
numbers_copy.target[-1].next_to(bars_copy.target[-1], UP, SMALL_BUFF) numbers_copy.target[-1].next_to(bars_copy.target[-1], UP, SMALL_BUFF)
self.play(*[ self.play(*[
MoveToTarget(mob, submobject_mode = "lagged_start") MoveToTarget(mob, lag_ratio = 0.5)
for mob in (bars_copy, numbers, numbers_copy) for mob in (bars_copy, numbers, numbers_copy)
]) ])
self.remove(numbers, numbers_copy) self.remove(numbers, numbers_copy)
@ -3064,7 +3064,7 @@ class NineChooseFourExample(HowToComputeNChooseK):
self.play(FadeIn(line, run_time = 0.1)) self.play(FadeIn(line, run_time = 0.1))
self.wait(2) self.wait(2)
self.play(FadeOut( self.play(FadeOut(
stack, submobject_mode = "lagged_start", run_time = 2 stack, lag_ratio = 0.5, run_time = 2
)) ))
def choose_k_people(self): def choose_k_people(self):
@ -3400,7 +3400,7 @@ class SumsToPowerOf2(Scene):
self.play( self.play(
Transform(n_choose_k_terms, fractions), Transform(n_choose_k_terms, fractions),
MoveToTarget(plusses), MoveToTarget(plusses),
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 2 run_time = 2
) )
self.wait() self.wait()

View file

@ -880,7 +880,7 @@ class ThousandPossibleQuizzes(Scene):
target_quizzes = VGroup(*quizzes[:len(full_quizzes)]) target_quizzes = VGroup(*quizzes[:len(full_quizzes)])
for quiz in full_quizzes: for quiz in full_quizzes:
self.play(FadeIn(quiz, run_time = 3, submobject_mode = "lagged_start")) self.play(FadeIn(quiz, run_time = 3, lag_ratio = 0.5))
self.play( self.play(
Transform(full_quizzes, target_quizzes), Transform(full_quizzes, target_quizzes),
FadeIn(title) FadeIn(title)
@ -1022,7 +1022,7 @@ class ThousandPossibleQuizzes(Scene):
self.play( self.play(
MoveToTarget( MoveToTarget(
movers, movers,
submobject_mode = "lagged_start", lag_ratio = 0.5,
lag_factor = 4, lag_factor = 4,
run_time = 3, run_time = 3,
), ),
@ -1079,7 +1079,7 @@ class ThousandPossibleQuizzes(Scene):
self.play( self.play(
MoveToTarget( MoveToTarget(
movers, movers,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 3, run_time = 3,
), ),
Transform(equation, alt_equation) Transform(equation, alt_equation)
@ -1763,7 +1763,7 @@ class ShowFullDistribution(Scene):
self.play( self.play(
ReplacementTransform( ReplacementTransform(
value_mobs, chart.bars, value_mobs, chart.bars,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 2 run_time = 2
) )
) )
@ -2377,7 +2377,7 @@ class NameBinomial(Scene):
for m1, m2 in (self.crosses, boys), (self.checkmarks, girls): for m1, m2 in (self.crosses, boys), (self.checkmarks, girls):
self.play(ReplacementTransform( self.play(ReplacementTransform(
m1, m2, m1, m2,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 3 run_time = 3
)) ))
self.wait() self.wait()
@ -2676,7 +2676,7 @@ class ProbabilityOfAGivenBoyGirlPattern(CycleThroughPatterns):
self.play(ReplacementTransform( self.play(ReplacementTransform(
factored, factored_in_nums, factored, factored_in_nums,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.wait(2) self.wait(2)
for group, tex in (gp_nums, "0.49"), (bp_nums, "0.51"): for group, tex in (gp_nums, "0.49"), (bp_nums, "0.51"):
@ -3188,13 +3188,13 @@ class AssumeOrderDoesntMatter(Scene):
self.play(FadeIn( self.play(FadeIn(
prob_groups[1], prob_groups[1],
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.wait(2) self.wait(2)
self.play(FadeIn( self.play(FadeIn(
VGroup(prob_groups[0], *prob_groups[2:]), VGroup(prob_groups[0], *prob_groups[2:]),
run_time = 3, run_time = 3,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.wait() self.wait()
@ -3311,7 +3311,7 @@ class SkepticalOfDistributions(TeacherStudentsScene):
self.play( self.play(
Write(title, run_time = 1), Write(title, run_time = 1),
FadeIn(binomial, run_time = 1, submobject_mode = "lagged_start"), FadeIn(binomial, run_time = 1, lag_ratio = 0.5),
self.teacher.change, "raise_right_hand" self.teacher.change, "raise_right_hand"
) )
for values in binomial.values_list: for values in binomial.values_list:
@ -3340,14 +3340,14 @@ class SkepticalOfDistributions(TeacherStudentsScene):
self.play( self.play(
FadeIn(poisson, submobject_mode = "lagged_start"), FadeIn(poisson, lag_ratio = 0.5),
RemovePiCreatureBubble(self.students[0]), RemovePiCreatureBubble(self.students[0]),
self.teacher.change, "raise_right_hand", self.teacher.change, "raise_right_hand",
self.binomial.scale, 0.5, self.binomial.scale, 0.5,
self.binomial.to_corner, UP+LEFT, self.binomial.to_corner, UP+LEFT,
) )
self.play(Write(poisson.title, run_time = 1)) self.play(Write(poisson.title, run_time = 1))
self.play(FadeIn(gaussian, submobject_mode = "lagged_start")) self.play(FadeIn(gaussian, lag_ratio = 0.5))
self.play(Write(gaussian.title, run_time = 1)) self.play(Write(gaussian.title, run_time = 1))
self.wait(2) self.wait(2)
self.change_student_modes( self.change_student_modes(
@ -3381,7 +3381,7 @@ class SkepticalOfDistributions(TeacherStudentsScene):
self.play( self.play(
ShowCreation( ShowCreation(
arrows, arrows,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 2 run_time = 2
), ),
*[ *[

View file

@ -90,7 +90,7 @@ class DrawBorderThenFill(Animation):
class Write(DrawBorderThenFill): class Write(DrawBorderThenFill):
CONFIG = { CONFIG = {
"rate_func": linear, "rate_func": linear,
"submobject_mode": "lagged_start", "lag_ratio": 0.5,
} }
def __init__(self, mob_or_text, **kwargs): def __init__(self, mob_or_text, **kwargs):

View file

@ -33,7 +33,7 @@ class OpeningQuote(Scene):
"highlighted_quote_terms": {}, "highlighted_quote_terms": {},
"author": "", "author": "",
"fade_in_kwargs": { "fade_in_kwargs": {
"submobject_mode": "lagged_start", "lag_ratio": 0.5,
"rate_func": linear, "rate_func": linear,
"lag_factor": 4, "lag_factor": 4,
"run_time": 5, "run_time": 5,

View file

@ -332,10 +332,10 @@ class TeacherStudentsScene(PiCreatureScene):
if "look_at_arg" in kwargs: if "look_at_arg" in kwargs:
for pi in target: for pi in target:
pi.look_at(kwargs["look_at_arg"]) pi.look_at(kwargs["look_at_arg"])
submobject_mode = kwargs.get("submobject_mode", "lagged_start") lag_ratio = kwargs.get("lag_ratio", 0.5)
return Transform( return Transform(
start, target, start, target,
submobject_mode=submobject_mode, lag_ratio=lag_ratio,
run_time=2 run_time=2
) )

View file

@ -150,7 +150,7 @@ class CountingScene(Scene):
result.append(ShowCreation(arrow)) result.append(ShowCreation(arrow))
result.append(Transform( result.append(Transform(
self.number_mob, new_number_mob, self.number_mob, new_number_mob,
submobject_mode="lagged_start" lag_ratio=0.5
)) ))
return result return result

View file

@ -302,7 +302,7 @@ class GraphScene(Scene):
def transform_between_riemann_rects(self, curr_rects, new_rects, **kwargs): def transform_between_riemann_rects(self, curr_rects, new_rects, **kwargs):
transform_kwargs = { transform_kwargs = {
"run_time": 2, "run_time": 2,
"submobject_mode": "lagged_start" "lag_ratio": 0.5
} }
added_anims = kwargs.get("added_anims", []) added_anims = kwargs.get("added_anims", [])
transform_kwargs.update(kwargs) transform_kwargs.update(kwargs)

View file

@ -124,7 +124,7 @@ class BreakUp2To256(PiCreatureScene):
Transform( Transform(
self.subexpressions, new_subexpressions, self.subexpressions, new_subexpressions,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start", lag_ratio = 0.5,
), ),
FadeOut(self.pi_creature) FadeOut(self.pi_creature)
) )
@ -495,7 +495,7 @@ class MainBreakdown(Scene):
ReplacementTransform( ReplacementTransform(
self.group_of_four_billion_things, VGroup(num), self.group_of_four_billion_things, VGroup(num),
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
), ),
ShowCreation(h_line), ShowCreation(h_line),
ReplacementTransform( ReplacementTransform(

View file

@ -124,7 +124,7 @@ class IntroSceneWrapper(PiCreatureScene):
self.play(Transform( self.play(Transform(
solver, rainbow_solver, solver, rainbow_solver,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.play(solver.restore) self.play(solver.restore)
self.wait() self.wait()

View file

@ -2256,7 +2256,7 @@ class GraphOnePlusOneOverX(GraphScene):
line.fade(0.5) line.fade(0.5)
line_anim = ShowCreationThenDestruction( line_anim = ShowCreationThenDestruction(
line_copy, line_copy,
submobject_mode="lagged_start", lag_ratio=0.5,
run_time=2 run_time=2
) )
line.continual_anim = CycleAnimation(line_anim) line.continual_anim = CycleAnimation(line_anim)

View file

@ -686,13 +686,13 @@ class MathematicalWebOfConnections(PiCreatureScene):
randy.change, "raise_right_hand", randy.change, "raise_right_hand",
FadeOut(jerk.bubble), FadeOut(jerk.bubble),
words.next_to, jerk, UP, words.next_to, jerk, UP,
FadeIn(basel_sum, submobject_mode = "lagged_start", run_time = 3) FadeIn(basel_sum, lag_ratio = 0.5, run_time = 3)
) )
for formula in formulas[1:]: for formula in formulas[1:]:
self.play( self.play(
FadeIn( FadeIn(
formula, formula,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 3 run_time = 3
), ),
) )

View file

@ -510,7 +510,7 @@ class BasicsOfPolarization(DirectionOfPolarizationScene):
self.play(FadeIn( self.play(FadeIn(
quantum_words, quantum_words,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
anim_sets = [ anim_sets = [
[passing_photon], [passing_photon],
@ -526,7 +526,7 @@ class BasicsOfPolarization(DirectionOfPolarizationScene):
for index in 0, 1: for index in 0, 1:
self.play(*anim_sets[index]) self.play(*anim_sets[index])
self.play( self.play(
# FadeIn(prob_eq, submobject_mode = "lagged_start"), # FadeIn(prob_eq, lag_ratio = 0.5),
passing_photon passing_photon
) )
for index in 1, 0, 0, 1: for index in 1, 0, 0, 1:
@ -1477,7 +1477,7 @@ class VennDiagramProofByContradiction(Scene):
Write(hundred), Write(s), Write(hundred), Write(s),
ReplacementTransform( ReplacementTransform(
VGroup(photon), photons, VGroup(photon), photons,
submobject_mode = "lagged_start" lag_ratio = 0.5
) )
) )
@ -2082,7 +2082,7 @@ class ReEmphasizeVennDiagram(VennDiagramProofByContradiction):
self.play(FadeIn(A1)) self.play(FadeIn(A1))
self.play(FadeIn(B0)) self.play(FadeIn(B0))
self.play( self.play(
FadeIn(words, submobject_mode = "lagged_start"), FadeIn(words, lag_ratio = 0.5),
ShowCreation(arrow) ShowCreation(arrow)
) )
self.wait() self.wait()
@ -2124,7 +2124,7 @@ class ReEmphasizeVennDiagram(VennDiagramProofByContradiction):
self.in_A_out_B_words.fade, 1, self.in_A_out_B_words.fade, 1,
self.in_A_out_B_arrow.fade, 1, self.in_A_out_B_arrow.fade, 1,
FadeIn(B1), FadeIn(B1),
FadeIn(words, submobject_mode = "lagged_start"), FadeIn(words, lag_ratio = 0.5),
ShowCreation(arrow) ShowCreation(arrow)
) )
self.play(FadeIn(C0)) self.play(FadeIn(C0))

View file

@ -185,7 +185,7 @@ class IntroduceStolenNecklaceProblem(ThreeDScene):
self.play( self.play(
FadeIn( FadeIn(
necklace, necklace,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 3 run_time = 3
), ),
*it.chain(*[ *it.chain(*[
@ -992,7 +992,7 @@ class MentionGenerality(TeacherStudentsScene, ThreeDScene):
self.teacher.look_at, arrow self.teacher.look_at, arrow
) )
self.play( self.play(
FadeIn(necklace, run_time = 2, submobject_mode = "lagged_start"), FadeIn(necklace, run_time = 2, lag_ratio = 0.5),
Write(arrow), Write(arrow),
*[ *[
ApplyMethod(pi.look_at, arrow) ApplyMethod(pi.look_at, arrow)
@ -1276,7 +1276,7 @@ class MakeTwoJewelCaseContinuous(IntroduceStolenNecklaceProblem):
) )
self.play(FadeIn( self.play(FadeIn(
self.necklace, self.necklace,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.shuffle_jewels(self.necklace.jewels) self.shuffle_jewels(self.necklace.jewels)
jewel_types = self.get_jewels_organized_by_type( jewel_types = self.get_jewels_organized_by_type(
@ -1416,7 +1416,7 @@ class MakeTwoJewelCaseContinuous(IntroduceStolenNecklaceProblem):
self.play(jewels.shift, jewels.get_height()*UP) self.play(jewels.shift, jewels.get_height()*UP)
self.play(ReplacementTransform( self.play(ReplacementTransform(
jewels, segments, jewels, segments,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 2 run_time = 2
)) ))
self.wait() self.wait()
@ -1964,7 +1964,7 @@ class ChoicesForSpherePoint(GeneralizeBorsukUlam):
self.play(FadeIn( self.play(FadeIn(
choices, choices,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.wait() self.wait()
@ -1997,7 +1997,7 @@ class ChoicesForSpherePoint(GeneralizeBorsukUlam):
]) ])
self.play(ShowCreation(arrows)) self.play(ShowCreation(arrows))
self.play(FadeIn(sqrts, submobject_mode = "lagged_start")) self.play(FadeIn(sqrts, lag_ratio = 0.5))
self.play(Write(self.choice_two_words)) self.play(Write(self.choice_two_words))
self.wait() self.wait()

View file

@ -1275,7 +1275,7 @@ class CompareToGalacticMass(Scene):
), ),
ReplacementTransform( ReplacementTransform(
dots, commas, dots, commas,
submobject_mode="lagged_start", lag_ratio=0.5,
run_time=2 run_time=2
) )
) )

View file

@ -1471,7 +1471,7 @@ class AnalyzeCircleGeometry(CircleDiagramFromSlidingBlocks, MovingCameraScene):
arc.fade(1) arc.fade(1)
arc.set_stroke(width=20) arc.set_stroke(width=20)
self.play(Restore( self.play(Restore(
all_arcs, submobject_mode="lagged_start", all_arcs, lag_ratio=0.5,
run_time=2, run_time=2,
)) ))
self.wait() self.wait()
@ -1625,7 +1625,7 @@ class AnalyzeCircleGeometry(CircleDiagramFromSlidingBlocks, MovingCameraScene):
self.play( self.play(
Restore( Restore(
lines, lines,
submobject_mode="lagged_start", lag_ratio=0.5,
run_time=2 run_time=2
), ),
FadeOut(self.center_lines_group), FadeOut(self.center_lines_group),

View file

@ -1293,7 +1293,7 @@ class TryGuessingDigitalSignature(Scene):
GrowFromCenter(brace), GrowFromCenter(brace),
FadeIn( FadeIn(
zeros, zeros,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 3 run_time = 3
) )
) )
@ -1497,7 +1497,7 @@ class IncludeTransactionNumber(LedgerScene):
self.play(FadeOut(old_signatures)) self.play(FadeOut(old_signatures))
self.play(ReplacementTransform( self.play(ReplacementTransform(
lines.copy(), new_signatures, lines.copy(), new_signatures,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 2, run_time = 2,
)) ))
self.play(self.bob.change, "erm") self.play(self.bob.change, "erm")
@ -2558,7 +2558,7 @@ class IntroduceSHA256(Scene):
self.play(Transform( self.play(Transform(
digest, new_digest, digest, new_digest,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start", lag_ratio = 0.5,
path_arc = np.pi/2 path_arc = np.pi/2
)) ))
if arrow in self.get_mobjects(): if arrow in self.get_mobjects():
@ -2610,7 +2610,7 @@ class IntroduceSHA256(Scene):
Transform( Transform(
self.digest, new_digest, self.digest, new_digest,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start", lag_ratio = 0.5,
path_arc = np.pi/2 path_arc = np.pi/2
), ),
Transform(self.digest_text, desired_output_text) Transform(self.digest_text, desired_output_text)
@ -2655,7 +2655,7 @@ class IntroduceSHA256(Scene):
self.play(Transform( self.play(Transform(
group[1], new_group[1], group[1], new_group[1],
run_time = 1, run_time = 1,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
class PonderScematic(Scene): class PonderScematic(Scene):
@ -2821,13 +2821,13 @@ class IntroduceNonceOnTrasactions(LedgerScene):
self.play(Transform( self.play(Transform(
self.digest, digest, self.digest, digest,
run_time = 1, run_time = 1,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.wait() self.wait()
self.play(self.nonce.restore) self.play(self.nonce.restore)
self.play( self.play(
self.digest.restore, self.digest.restore,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 2 run_time = 2
) )
self.play(FadeOut(q_mark)) self.play(FadeOut(q_mark))
@ -2868,7 +2868,7 @@ class IntroduceNonceOnTrasactions(LedgerScene):
) )
self.play(Transform( self.play(Transform(
self.digest, new_digest, self.digest, new_digest,
submobject_mode = "lagged_start", lag_ratio = 0.5,
)) ))
class ShowSomeBroadcasting(DistributedLedgerScene): class ShowSomeBroadcasting(DistributedLedgerScene):
@ -3035,7 +3035,7 @@ class IntroduceBlockChain(Scene):
self.play(Transform( self.play(Transform(
proofs_of_work, new_proofs_of_work, proofs_of_work, new_proofs_of_work,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.play( self.play(
ShowCreation(arrows), ShowCreation(arrows),
@ -4618,7 +4618,7 @@ class VariableProofOfWork(WhenToTrustANewBlock):
Transform(n_zeros_mob, new_n_zeros_mob), Transform(n_zeros_mob, new_n_zeros_mob),
Transform( Transform(
digest, new_digest, digest, new_digest,
submobject_mode = "lagged_start" lag_ratio = 0.5
), ),
Transform(proof_of_work, new_pow), Transform(proof_of_work, new_pow),
) )

View file

@ -1421,7 +1421,7 @@ class CreativeConstruction(PiCreatureScene):
lightbulb, lightbulb,
run_time=3, run_time=3,
rate_func=there_and_back, rate_func=there_and_back,
submobject_mode="lagged_start" lag_ratio=0.5
)) ))
self.play(Blink(randy)) self.play(Blink(randy))
self.wait() self.wait()
@ -1680,7 +1680,7 @@ class ReactionToGlimpseOfGenius(TeacherStudentsScene, CreativeConstruction):
lightbulb, q_marks, lightbulb, q_marks,
run_time=3, run_time=3,
rate_func=there_and_back_with_pause, rate_func=there_and_back_with_pause,
submobject_mode="lagged_start" lag_ratio=0.5
)) ))
self.play( self.play(
ClockPassesTime(clock, hours_passed=4, run_tim=4), ClockPassesTime(clock, hours_passed=4, run_tim=4),

View file

@ -126,7 +126,7 @@ class Anniversary(TeacherStudentsScene):
self.play( self.play(
DrawBorderThenFill( DrawBorderThenFill(
hats, hats,
submobject_mode = "lagged_start", lag_ratio = 0.5,
rate_func=linear, rate_func=linear,
run_time = 2, run_time = 2,
), ),
@ -2365,7 +2365,7 @@ class ExponentsAsRepeatedMultiplication(TeacherStudentsScene):
self.play(FadeIn( self.play(FadeIn(
five_twos, five_twos,
run_time = 3, run_time = 3,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.wait(2) self.wait(2)
@ -3288,7 +3288,7 @@ class ECLPromo(PiCreatureScene):
self.wait(3) self.wait(3)
self.play(FadeIn( self.play(FadeIn(
logo_part1, run_time = 3, logo_part1, run_time = 3,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
logo_part2.save_state() logo_part2.save_state()
logo_part2.scale(2) logo_part2.scale(2)

View file

@ -235,7 +235,7 @@ class Introduction(TeacherStudentsScene):
self.play( self.play(
FadeIn( FadeIn(
series, series,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 2 run_time = 2
), ),
Blink(self.get_teacher()) Blink(self.get_teacher())
@ -577,7 +577,7 @@ class IntroduceCircle(CircleScene):
unwrapped_rings.move_to(self.unwrapped_tip, UP) unwrapped_rings.move_to(self.unwrapped_tip, UP)
ring_anim_kwargs = { ring_anim_kwargs = {
"run_time" : 3, "run_time" : 3,
"submobject_mode" : "lagged_start" "lag_ratio" : 0.5
} }
self.play( self.play(
@ -696,7 +696,7 @@ class ApproximateOneRing(CircleScene, ReconfigurableScene):
ShowCreation( ShowCreation(
lines, lines,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
), ),
Animation(self.radius_group), Animation(self.radius_group),
self.pi_creature.change_mode, "maybe" self.pi_creature.change_mode, "maybe"
@ -718,7 +718,7 @@ class ApproximateOneRing(CircleScene, ReconfigurableScene):
self.play( self.play(
FadeIn( FadeIn(
rings, rings,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 3 run_time = 3
), ),
Animation(self.radius_group), Animation(self.radius_group),
@ -911,7 +911,7 @@ class ApproximateOneRing(CircleScene, ReconfigurableScene):
Animation(alt_side_brace), Animation(alt_side_brace),
Animation(alt_dr_label), Animation(alt_dr_label),
run_time = 3, run_time = 3,
submobject_mode = "lagged_start" lag_ratio = 0.5
) )
self.wait(2) self.wait(2)
@ -1071,7 +1071,7 @@ class GraphRectangles(CircleScene, GraphScene):
self.wait() self.wait()
self.play( self.play(
Transform(moving_arrow, arrows[-1]), Transform(moving_arrow, arrows[-1]),
ShowCreation(r_ticks, submobject_mode = "lagged_start"), ShowCreation(r_ticks, lag_ratio = 0.5),
run_time = 2 run_time = 2
) )
self.play(Indicate(self.rings[-1])) self.play(Indicate(self.rings[-1]))
@ -1234,7 +1234,7 @@ class GraphRectangles(CircleScene, GraphScene):
lambda t : 0.1*there_and_back(t), lambda t : 0.1*there_and_back(t),
alpha, alpha+0.5 alpha, alpha+0.5
), ),
submobject_mode = "lagged_start" lag_ratio = 0.5
) )
for rect, flat_rect, alpha in zip( for rect, flat_rect, alpha in zip(
self.rects, self.flat_rects, self.rects, self.flat_rects,
@ -1285,7 +1285,7 @@ class GraphRectangles(CircleScene, GraphScene):
self.play( self.play(
Transform( Transform(
self.rects, new_rects, self.rects, new_rects,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 2 run_time = 2
), ),
Animation(self.axes), Animation(self.axes),
@ -1296,7 +1296,7 @@ class GraphRectangles(CircleScene, GraphScene):
self.rects, self.rects,
direction = RIGHT, direction = RIGHT,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start", lag_ratio = 0.5,
)) ))
self.wait() self.wait()
@ -1382,7 +1382,7 @@ class GraphRectangles(CircleScene, GraphScene):
Transform( Transform(
rings, unwrapped, rings, unwrapped,
run_time = 5, run_time = 5,
submobject_mode = "lagged_start", lag_ratio = 0.5,
), ),
Animation(self.radius_group) Animation(self.radius_group)
) )
@ -1525,7 +1525,7 @@ class RecapCircleSolution(GraphRectangles, ReconfigurableScene):
self.add(rings, self.radius_group) self.add(rings, self.radius_group)
self.play(FadeIn( self.play(FadeIn(
integral_condition, integral_condition,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.wait() self.wait()
self.play(*draw_ring_sum_anims) self.play(*draw_ring_sum_anims)
@ -1665,7 +1665,7 @@ class RecapCircleSolution(GraphRectangles, ReconfigurableScene):
ReplacementTransform( ReplacementTransform(
self.rings.copy(), rects, self.rings.copy(), rects,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
), ),
Animation(self.x_axis), Animation(self.x_axis),
) )
@ -1695,7 +1695,7 @@ class RecapCircleSolution(GraphRectangles, ReconfigurableScene):
self.play( self.play(
Transform( Transform(
self.rects, new_rects, self.rects, new_rects,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 2 run_time = 2
), ),
Animation(self.axes), Animation(self.axes),
@ -1849,7 +1849,7 @@ class ExampleIntegralProblems(PiCreatureScene, GraphScene):
FadeIn( FadeIn(
pre_rects, pre_rects,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
), ),
Animation(self.ticks) Animation(self.ticks)
) )
@ -1857,7 +1857,7 @@ class ExampleIntegralProblems(PiCreatureScene, GraphScene):
ReplacementTransform( ReplacementTransform(
pre_rects, rects, pre_rects, rects,
run_time = 3, run_time = 3,
submobject_mode = "lagged_start" lag_ratio = 0.5
), ),
Animation(self.ticks), Animation(self.ticks),
Write(self.axes, run_time = 1) Write(self.axes, run_time = 1)
@ -1901,7 +1901,7 @@ class ExampleIntegralProblems(PiCreatureScene, GraphScene):
Transform( Transform(
self.rects, thinner_rects, self.rects, thinner_rects,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
) )
) )
self.wait() self.wait()
@ -2004,7 +2004,7 @@ class AreaUnderParabola(GraphScene):
rects, rects,
run_time = 2, run_time = 2,
rate_func = smooth, rate_func = smooth,
submobject_mode = "lagged_start", lag_ratio = 0.5,
), ),
*list(map(Animation, foreground_mobjects)) *list(map(Animation, foreground_mobjects))
) )
@ -2013,7 +2013,7 @@ class AreaUnderParabola(GraphScene):
self.play( self.play(
Transform( Transform(
rects, new_rects, rects, new_rects,
submobject_mode = "lagged_start", lag_ratio = 0.5,
), ),
*list(map(Animation, foreground_mobjects)) *list(map(Animation, foreground_mobjects))
) )
@ -2731,7 +2731,7 @@ class EndScreen(PiCreatureScene):
FadeIn( FadeIn(
words, words,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
), ),
self.pi_creature.change_mode, "hooray" self.pi_creature.change_mode, "hooray"
) )

View file

@ -301,7 +301,7 @@ class Pendulum(ReconfigurableScene):
FadeIn( FadeIn(
cosine_approx, cosine_approx,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
), ),
MoveToTarget(cosine), MoveToTarget(cosine),
morty.change, "pondering", cosine_approx morty.change, "pondering", cosine_approx
@ -619,7 +619,7 @@ class ConstructQuadraticApproximation(ExampleApproximationWithCos):
self.play(FadeIn( self.play(FadeIn(
quadratic_tex, quadratic_tex,
run_time = 3, run_time = 3,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.play( self.play(
FadeIn(free_to_change), FadeIn(free_to_change),
@ -708,7 +708,7 @@ class ConstructQuadraticApproximation(ExampleApproximationWithCos):
self.play(Transform( self.play(Transform(
poly_group, poly_group_target, poly_group, poly_group_target,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.wait(2) self.wait(2)
self.play(*list(map(FadeOut, [poly_at_zero, equals_c0]))) self.play(*list(map(FadeOut, [poly_at_zero, equals_c0])))
@ -762,7 +762,7 @@ class ConstructQuadraticApproximation(ExampleApproximationWithCos):
self.play(FadeIn( self.play(FadeIn(
VGroup(derivative, *rhs[:2]), VGroup(derivative, *rhs[:2]),
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.wait(2) self.wait(2)
self.play(Write(VGroup(*rhs[2:])), run_time = 2) self.play(Write(VGroup(*rhs[2:])), run_time = 2)
@ -806,13 +806,13 @@ class ConstructQuadraticApproximation(ExampleApproximationWithCos):
self.play(FadeIn( self.play(FadeIn(
derivative, derivative,
run_time = 3, run_time = 3,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.wait() self.wait()
self.play(Transform( self.play(Transform(
derivative, derivative_at_zero, derivative, derivative_at_zero,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.wait(2) self.wait(2)
self.play(Write(equals_c1)) self.play(Write(equals_c1))
@ -820,7 +820,7 @@ class ConstructQuadraticApproximation(ExampleApproximationWithCos):
self.play(Transform( self.play(Transform(
poly_group, poly_group_target, poly_group, poly_group_target,
run_time = 3, run_time = 3,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.wait(2) self.wait(2)
@ -865,7 +865,7 @@ class ConstructQuadraticApproximation(ExampleApproximationWithCos):
self.play(FadeIn( self.play(FadeIn(
VGroup(second_deriv, *rhs[1][:2]), VGroup(second_deriv, *rhs[1][:2]),
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.wait(3) self.wait(3)
self.play(Write(VGroup(*rhs[1][2:]), run_time = 2)) self.play(Write(VGroup(*rhs[1][2:]), run_time = 2))
@ -947,7 +947,7 @@ class ConstructQuadraticApproximation(ExampleApproximationWithCos):
self.play(Transform( self.play(Transform(
poly_group, poly_group_target, poly_group, poly_group_target,
run_time = 3, run_time = 3,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.wait(3) self.wait(3)
@ -1444,7 +1444,7 @@ class CubicAndQuarticApproximations(ConstructQuadraticApproximation):
self.play(Transform( self.play(Transform(
c3s, zeros, c3s, zeros,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.wait(2) self.wait(2)
@ -1547,7 +1547,7 @@ class CubicAndQuarticApproximations(ConstructQuadraticApproximation):
Transform( Transform(
c4s, fractions, c4s, fractions,
run_time = 3, run_time = 3,
submobject_mode = "lagged_start", lag_ratio = 0.5,
), ),
MoveToTarget(x_to_4, run_time = 2) MoveToTarget(x_to_4, run_time = 2)
) )
@ -1962,7 +1962,7 @@ class ApproximateNearNewPoint(CubicAndQuarticApproximations):
self.play(FadeIn( self.play(FadeIn(
poly_around_pi, poly_around_pi,
run_time = 4, run_time = 4,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.wait(2) self.wait(2)
self.play(FadeIn(randy)) self.play(FadeIn(randy))
@ -2303,7 +2303,7 @@ class TranslationOfInformation(CubicAndQuarticApproximations):
self.play(ReplacementTransform( self.play(ReplacementTransform(
zeros.copy(), self.dot, zeros.copy(), self.dot,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.play(ShowCreation(self.v_line)) self.play(ShowCreation(self.v_line))
self.wait() self.wait()
@ -2326,7 +2326,7 @@ class TranslationOfInformation(CubicAndQuarticApproximations):
ReplacementTransform( ReplacementTransform(
self.polynomial, new_polynomial, self.polynomial, new_polynomial,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
), ),
FadeOut(polynomial_fourth_term), FadeOut(polynomial_fourth_term),
FadeOut(self.taylor_name_group), FadeOut(self.taylor_name_group),
@ -2944,7 +2944,7 @@ class SecondTermIntuition(AreaIsDerivative):
self.play(FadeIn( self.play(FadeIn(
geometric_taylor, geometric_taylor,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.wait() self.wait()
self.play( self.play(
@ -3388,7 +3388,7 @@ class RadiusOfConvergenceForLnX(ExpGraphConvergence):
self.play(FadeIn( self.play(FadeIn(
series, series,
run_time = 3, run_time = 3,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.wait() self.wait()
self.series = series self.series = series

View file

@ -744,7 +744,7 @@ class CompareTwoTimes(Scene):
group.to_corner(UP+RIGHT) group.to_corner(UP+RIGHT)
self.play(FadeIn( self.play(FadeIn(
group, submobject_mode = "lagged_start", group, lag_ratio = 0.5,
run_time = 3 run_time = 3
)) ))
self.wait(3) self.wait(3)
@ -1127,7 +1127,7 @@ class DsOverDtGraphically(GraphCarTrajectory, ZoomedScene):
self.wait() self.wait()
for anim_class in FadeIn, FadeOut: for anim_class in FadeIn, FadeOut:
self.play(anim_class( self.play(anim_class(
t_tick_marks, submobject_mode = "lagged_start", t_tick_marks, lag_ratio = 0.5,
run_time = 2 run_time = 2
)) ))
self.play( self.play(
@ -1970,7 +1970,7 @@ class YouWouldntDoThisEveryTime(TeacherStudentsScene):
next_video = series[2] next_video = series[2]
this_video.save_state() this_video.save_state()
this_video.set_color(YELLOW) this_video.set_color(YELLOW)
self.play(FadeIn(series, submobject_mode = "lagged_start")) self.play(FadeIn(series, lag_ratio = 0.5))
self.play( self.play(
this_video.restore, this_video.restore,
next_video.set_color, YELLOW, next_video.set_color, YELLOW,

View file

@ -161,7 +161,7 @@ class ContrastAbstractAndConcrete(Scene):
anims.append(Transform( anims.append(Transform(
VGroup(*[pi.parents for pi in these_pis]), VGroup(*[pi.parents for pi in these_pis]),
VGroup(*[VGroup(pi, pi.copy()) for pi in these_pis]), VGroup(*[VGroup(pi, pi.copy()) for pi in these_pis]),
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 2, run_time = 2,
)) ))
exp += 1 exp += 1
@ -1353,7 +1353,7 @@ class PatternForPowerRule(PiCreatureScene):
replace_mobject_with_target_in_scene = True replace_mobject_with_target_in_scene = True
), ),
ShowCreation(lines), ShowCreation(lines),
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 2, run_time = 2,
) )
self.wait() self.wait()
@ -2705,7 +2705,7 @@ class NextVideo(TeacherStudentsScene):
self.play( self.play(
FadeIn( FadeIn(
series, series,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 3, run_time = 3,
), ),
*[ *[

View file

@ -90,7 +90,7 @@ class TransitionFromLastVideo(TeacherStudentsScene):
self.play( self.play(
interior.set_color, YELLOW, interior.set_color, YELLOW,
*added_anims, *added_anims,
submobject_mode = "lagged_start" lag_ratio = 0.5
) )
self.wait() self.wait()
self.wait() self.wait()
@ -165,7 +165,7 @@ class TransitionFromLastVideo(TeacherStudentsScene):
modes = 3*["erm"] + 3*["pleading"] modes = 3*["erm"] + 3*["pleading"]
for part, mode in zip(parts, modes): for part, mode in zip(parts, modes):
self.play( self.play(
FadeIn(part, submobject_mode = "lagged_start"), FadeIn(part, lag_ratio = 0.5),
self.get_teacher().change_mode, "raise_right_hand", self.get_teacher().change_mode, "raise_right_hand",
*[ *[
ApplyMethod(pi.change_mode, mode) ApplyMethod(pi.change_mode, mode)
@ -1727,7 +1727,7 @@ class ThreeLinesChainRule(ReconfigurableScene):
self.wait() self.wait()
self.play( self.play(
all_x_squared_relevant_labels.restore, all_x_squared_relevant_labels.restore,
submobject_mode = "lagged_start", lag_ratio = 0.5,
lag_factor = 3, lag_factor = 3,
run_time = 3, run_time = 3,
) )

View file

@ -114,7 +114,7 @@ class DoublingPopulation(PiCreatureScene):
FadeIn( FadeIn(
t_expression, t_expression,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
) )
) )
self.play(Transform(f_x, P_t)) self.play(Transform(f_x, P_t))
@ -496,7 +496,7 @@ class GraphOfTwoToT(GraphScene):
FadeIn( FadeIn(
slope_label, slope_label,
run_time = 4, run_time = 4,
submobject_mode = "lagged_start" lag_ratio = 0.5
), ),
ReplacementTransform( ReplacementTransform(
height_label.copy(), height_label.copy(),
@ -1387,7 +1387,7 @@ class WhyNaturalLogOf2ShowsUp(TeacherStudentsScene):
FadeIn( FadeIn(
exp_c, exp_c,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
), ),
self.teacher.change, "raise_right_hand" self.teacher.change, "raise_right_hand"
) )
@ -1457,7 +1457,7 @@ class WhyNaturalLogOf2ShowsUp(TeacherStudentsScene):
ApplyMethod( ApplyMethod(
t_group.restore, t_group.restore,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start", lag_ratio = 0.5,
), ),
self.teacher.change_mode, "speaking" self.teacher.change_mode, "speaking"
) )
@ -1614,7 +1614,7 @@ class ManyExponentialForms(TeacherStudentsScene):
self.play(FadeIn( self.play(FadeIn(
rhs, rhs,
run_time = 2, run_time = 2,
submobject_mode = 'lagged_start' lag_ratio = 0.5,
)) ))
self.wait(2) self.wait(2)
self.wait() self.wait()
@ -1790,13 +1790,13 @@ class NaturalLog(Scene):
self.play(FadeIn( self.play(FadeIn(
expressions, expressions,
run_time = 3, run_time = 3,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.wait() self.wait()
self.play( self.play(
expressions.set_fill, None, 1, expressions.set_fill, None, 1,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
) )
self.wait() self.wait()
for i in 0, 2, 1: for i in 0, 2, 1:

View file

@ -2595,7 +2595,7 @@ class FinalWords(TeacherStudentsScene):
self.teacher.change_mode, "plain", self.teacher.change_mode, "plain",
FadeIn( FadeIn(
series, run_time = 2, series, run_time = 2,
submobject_mode = "lagged_start", lag_ratio = 0.5,
), ),
) )
self.play( self.play(

View file

@ -103,7 +103,7 @@ class LimitJustMeansApproach(PiCreatureScene):
self.play( self.play(
Transform( Transform(
expression, next_expression, expression, next_expression,
submobject_mode = "lagged_start", lag_ratio = 0.5,
lag_factor = 1.2, lag_factor = 1.2,
), ),
self.pi_creature.look_at, next_expression[-1] self.pi_creature.look_at, next_expression[-1]
@ -318,7 +318,7 @@ class RefreshOnDerivativeDefinition(GraphScene):
self.play( self.play(
lim.scale_in_place, sf, lim.scale_in_place, sf,
lim.set_color, color, lim.set_color, color,
submobject_mode = "lagged_start" lag_ratio = 0.5
) )
self.wait(2) self.wait(2)
self.animate_secant_slope_group_change( self.animate_secant_slope_group_change(
@ -663,7 +663,7 @@ class OtherViewsOfDx(TeacherStudentsScene):
self.play(ReplacementTransform( self.play(ReplacementTransform(
statements[0].h.copy(), h_group, statements[0].h.copy(), h_group,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start", lag_ratio = 0.5,
lag_factor = 1.5, lag_factor = 1.5,
)) ))
self.wait() self.wait()
@ -823,7 +823,7 @@ class GraphLimitExpression(GraphScene):
for i, j, func in zip(indices, indices[1:], funcs): for i, j, func in zip(indices, indices[1:], funcs):
anims = [FadeIn( anims = [FadeIn(
VGroup(*expression[i:j]), VGroup(*expression[i:j]),
submobject_mode = "lagged_start", lag_ratio = 0.5,
lag_factor = 1.5 lag_factor = 1.5
)] )]
new_graph = self.get_graph(func, color = BLUE) new_graph = self.get_graph(func, color = BLUE)
@ -837,7 +837,7 @@ class GraphLimitExpression(GraphScene):
self.wait() self.wait()
self.play( self.play(
MoveToTarget(expression), MoveToTarget(expression),
FadeIn(limit, submobject_mode = "lagged_start"), FadeIn(limit, lag_ratio = 0.5),
GrowFromCenter(brace) GrowFromCenter(brace)
) )
self.play(Write(derivative)) self.play(Write(derivative))
@ -2438,9 +2438,9 @@ class DerivativeLimitReciprocity(Scene):
deriv.set_color_by_tex("df", YELLOW) deriv.set_color_by_tex("df", YELLOW)
deriv.next_to(arrow, RIGHT) deriv.next_to(arrow, RIGHT)
self.play(FadeIn(lim, submobject_mode = "lagged_start")) self.play(FadeIn(lim, lag_ratio = 0.5))
self.play(ShowCreation(arrow)) self.play(ShowCreation(arrow))
self.play(FadeIn(deriv, submobject_mode = "lagged_start")) self.play(FadeIn(deriv, lag_ratio = 0.5))
self.wait() self.wait()
self.play(Rotate(arrow, np.pi, run_time = 2)) self.play(Rotate(arrow, np.pi, run_time = 2))
self.wait() self.wait()

View file

@ -96,7 +96,7 @@ class ThisVideo(TeacherStudentsScene):
formula.set_color_by_tex("v", VELOCITY_COLOR) formula.set_color_by_tex("v", VELOCITY_COLOR)
formula.next_to(self.teacher.get_corner(UP+LEFT), UP, MED_LARGE_BUFF) formula.next_to(self.teacher.get_corner(UP+LEFT), UP, MED_LARGE_BUFF)
self.play(FadeIn(series, submobject_mode = "lagged_start")) self.play(FadeIn(series, lag_ratio = 0.5))
self.play( self.play(
this_video.shift, this_video.get_height()*DOWN/2, this_video.shift, this_video.get_height()*DOWN/2,
this_video.set_color, YELLOW, this_video.set_color, YELLOW,
@ -256,7 +256,7 @@ class PlotVelocity(GraphScene):
self.play(DrawBorderThenFill( self.play(DrawBorderThenFill(
speedometer, speedometer,
submobject_mode = "lagged_start", lag_ratio = 0.5,
rate_func=linear, rate_func=linear,
)) ))
@ -522,7 +522,7 @@ class AreaUnderVGraph(PlotVelocity):
self.play(Transform( self.play(Transform(
rects, new_rects, rects, new_rects,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.wait() self.wait()
@ -692,7 +692,7 @@ class ConstantVelocityPlot(PlotVelocity):
self.play( self.play(
FadeClass( FadeClass(
units_of_area, units_of_area,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 3 run_time = 3
), ),
Animation(self.s_label), Animation(self.s_label),
@ -860,7 +860,7 @@ class PiecewiseConstantPlot(PlotVelocity):
ReplacementTransform( ReplacementTransform(
flat_rects, rects, flat_rects, rects,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start", lag_ratio = 0.5,
), ),
Animation(right_brace) Animation(right_brace)
) )
@ -904,7 +904,7 @@ class PiecewiseConstantPlot(PlotVelocity):
self.play(ReplacementTransform( self.play(ReplacementTransform(
rects, target_rects, rects, target_rects,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
rects.restore() rects.restore()
self.wait() self.wait()
@ -921,7 +921,7 @@ class PiecewiseConstantPlot(PlotVelocity):
FadeIn( FadeIn(
example_text, example_text,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start", lag_ratio = 0.5,
), ),
ReplacementTransform( ReplacementTransform(
dt_label.copy(), dt_label.copy(),
@ -1200,12 +1200,12 @@ class PiecewiseConstantPlot(PlotVelocity):
ReplacementTransform( ReplacementTransform(
rects, next_rects, rects, next_rects,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
), ),
Transform( Transform(
self.ticks, self.get_ticks(next_rects), self.ticks, self.get_ticks(next_rects),
run_time = 2, run_time = 2,
submobject_mode = "lagged_start", lag_ratio = 0.5,
), ),
) )
self.rects = rects = next_rects self.rects = rects = next_rects
@ -1276,7 +1276,7 @@ class PiecewiseConstantPlot(PlotVelocity):
Transform( Transform(
rects, new_rects, rects, new_rects,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
), ),
morty.look_at, rects, morty.look_at, rects,
) )
@ -1461,7 +1461,7 @@ class AreaUnderACurve(GraphScene):
self.play(Transform( self.play(Transform(
rects, new_rects, rects, new_rects,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.wait() self.wait()
@ -1782,7 +1782,7 @@ class DirectInterpretationOfDsDt(TeacherStudentsScene):
FadeIn( FadeIn(
words, words,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start", lag_ratio = 0.5,
), ),
self.students[1].change_mode, "raise_right_hand" self.students[1].change_mode, "raise_right_hand"
) )
@ -1816,7 +1816,7 @@ class FindAntiderivative(Antiderivative):
self.add(functions) self.add(functions)
self.play(*list(map(ShowCreation, arcs))) self.play(*list(map(ShowCreation, arcs)))
for word in words: for word in words:
self.play(FadeIn(word, submobject_mode = "lagged_start")) self.play(FadeIn(word, lag_ratio = 0.5))
self.wait() self.wait()
self.change_mode("confused") self.change_mode("confused")
self.wait(2) self.wait(2)
@ -2515,7 +2515,7 @@ class NegativeArea(GraphScene):
FadeIn( FadeIn(
area, area,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start", lag_ratio = 0.5,
) )
) )
@ -2688,7 +2688,7 @@ class NextVideo(TeacherStudentsScene):
integral = TexMobject("\\int") integral = TexMobject("\\int")
integral.next_to(next_video, DOWN, LARGE_BUFF) integral.next_to(next_video, DOWN, LARGE_BUFF)
self.play(FadeIn(series, submobject_mode = "lagged_start")) self.play(FadeIn(series, lag_ratio = 0.5))
self.play( self.play(
next_video.set_color, YELLOW, next_video.set_color, YELLOW,
next_video.shift, next_video.get_height()*DOWN/2, next_video.shift, next_video.get_height()*DOWN/2,

View file

@ -49,7 +49,7 @@ class AverageOfContinuousVariable(GraphScene):
self.play(FadeIn( self.play(FadeIn(
question, question,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start", lag_ratio = 0.5,
)) ))
self.play(ShowCreation(v_line)) self.play(ShowCreation(v_line))
for bound in reversed(self.bounds): for bound in reversed(self.bounds):
@ -77,7 +77,7 @@ class ThisVideo(TeacherStudentsScene):
series.to_edge(UP) series.to_edge(UP)
this_video = series[8] this_video = series[8]
self.play(FadeIn(series, submobject_mode = "lagged_start")) self.play(FadeIn(series, lag_ratio = 0.5))
self.teacher_says( self.teacher_says(
"A new view of \\\\ the fundamental theorem", "A new view of \\\\ the fundamental theorem",
bubble_kwargs = {"height" : 3}, bubble_kwargs = {"height" : 3},
@ -225,14 +225,14 @@ class LengthOfDayGraph(GraphScene):
self.play(FadeIn( self.play(FadeIn(
label, label,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.play( self.play(
ShowCreation(graph, rate_func=linear), ShowCreation(graph, rate_func=linear),
FadeIn( FadeIn(
graph_label, graph_label,
rate_func = squish_rate_func(smooth, 0.5, 1), rate_func = squish_rate_func(smooth, 0.5, 1),
submobject_mode = "lagged_start" lag_ratio = 0.5
), ),
run_time = 3, run_time = 3,
) )
@ -271,7 +271,7 @@ class LengthOfDayGraph(GraphScene):
FadeIn( FadeIn(
panels, panels,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
) )
) )
for angle in -np.pi/4, np.pi/4: for angle in -np.pi/4, np.pi/4:
@ -419,7 +419,7 @@ class AverageOfFiniteSet(Scene):
self.add(lines) self.add(lines)
self.play(FadeIn( self.play(FadeIn(
labels, labels,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 3 run_time = 3
)) ))
self.wait() self.wait()
@ -497,7 +497,7 @@ class TryToAddInfinitelyManyPoints(AverageOfSineStart):
MoveToTarget( MoveToTarget(
v_lines, v_lines,
run_time = 3, run_time = 3,
submobject_mode = "lagged_start" lag_ratio = 0.5
), ),
Write(plusses) Write(plusses)
) )
@ -595,7 +595,7 @@ class FiniteSample(TryToAddInfinitelyManyPoints):
v_lines.copy(), v_lines.copy(),
summed_v_lines, summed_v_lines,
run_time = 3, run_time = 3,
submobject_mode = "lagged_start" lag_ratio = 0.5
), ),
Write( Write(
plusses, plusses,
@ -1171,7 +1171,7 @@ class Antiderivative(AverageOfSineStart):
self.play(FadeIn( self.play(FadeIn(
VGroup(*[part for part in rhs if part not in [end_pi, end_zero]]), VGroup(*[part for part in rhs if part not in [end_pi, end_zero]]),
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 2, run_time = 2,
)) ))
self.wait() self.wait()
@ -1574,7 +1574,7 @@ class GeneralAverage(AverageOfContinuousVariable):
self.play(FadeIn( self.play(FadeIn(
rects, rects,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
for new_rects in rect_list[1:]: for new_rects in rect_list[1:]:
self.transform_between_riemann_rects(rects, new_rects) self.transform_between_riemann_rects(rects, new_rects)
@ -1712,7 +1712,7 @@ class GeneralAverage(AverageOfContinuousVariable):
self.play(Transform( self.play(Transform(
self.v_lines, new_v_lines, self.v_lines, new_v_lines,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.wait() self.wait()

View file

@ -346,7 +346,7 @@ class IntroduceNotation(TeacherStudentsScene):
FadeIn( FadeIn(
clunky_deriv, clunky_deriv,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
), ),
RemovePiCreatureBubble(self.get_students()[1]), RemovePiCreatureBubble(self.get_students()[1]),
self.teacher.change_mode, "raise_right_hand" self.teacher.change_mode, "raise_right_hand"

View file

@ -233,7 +233,7 @@ class Introduction(TeacherStudentsScene):
self.play( self.play(
FadeIn( FadeIn(
series, series,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 2 run_time = 2
), ),
Blink(self.get_teacher()) Blink(self.get_teacher())
@ -313,7 +313,7 @@ class Introduction(TeacherStudentsScene):
self.play(Write(remembered_symbols)) self.play(Write(remembered_symbols))
self.play(ApplyMethod( self.play(ApplyMethod(
remembered_symbols.fade, 0.7, remembered_symbols.fade, 0.7,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 3 run_time = 3
)) ))
self.play( self.play(
@ -469,7 +469,7 @@ class HeartOfCalculus(GraphScene):
) )
self.play( self.play(
rects.restore, rects.restore,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 3 run_time = 3
) )
while rect_sets: while rect_sets:
@ -1747,7 +1747,7 @@ class IntroduceConcentricRings(CircleScene):
self.play( self.play(
MoveToTarget( MoveToTarget(
moving_rings, moving_rings,
submobject_mode = "lagged_start", lag_ratio = 0.5,
), ),
Write( Write(
VGroup(plusses, dots_equals_area), VGroup(plusses, dots_equals_area),
@ -2106,7 +2106,7 @@ class GraphIntegral(GraphScene):
height_label = left_brace.get_text("$2\\pi r$") height_label = left_brace.get_text("$2\\pi r$")
self.play( self.play(
ShowCreation(ticks, submobject_mode = "lagged_start"), ShowCreation(ticks, lag_ratio = 0.5),
Write(R_label) Write(R_label)
) )
self.play( self.play(
@ -2365,7 +2365,7 @@ class FundamentalTheorem(CircleScene):
self.play( self.play(
ApplyMethod( ApplyMethod(
rings.restore, rings.restore,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 5 run_time = 5
), ),
Animation(self.foreground_group), Animation(self.foreground_group),
@ -2452,7 +2452,7 @@ class CalculusInANutshell(CircleScene):
self.wait() self.wait()
self.play(Transform( self.play(Transform(
calculus, rings, calculus, rings,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 5 run_time = 5
)) ))
self.wait() self.wait()
@ -2482,7 +2482,7 @@ class CalculusInANutshell(CircleScene):
) )
self.play(FadeIn( self.play(FadeIn(
VGroup(*series[1:]), VGroup(*series[1:]),
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 2, run_time = 2,
)) ))
self.wait() self.wait()

View file

@ -116,7 +116,7 @@ class AboutLinearAlgebra(Scene):
self.play(Write(linalg, run_time = 1)) self.play(Write(linalg, run_time = 1))
self.wait() self.wait()
self.play( self.play(
ShowCreation(arrows, submobject_mode = "lagged_start"), ShowCreation(arrows, lag_ratio = 0.5),
FadeIn(all_subs), FadeIn(all_subs),
run_time = 2 run_time = 2
) )

View file

@ -165,7 +165,7 @@ class DifferentConceptions(Scene):
self.play( self.play(
Write(two_dimensional), Write(two_dimensional),
ApplyMethod(physy.change_mode, "pondering"), ApplyMethod(physy.change_mode, "pondering"),
ShowCreation(random_vectors, submobject_mode = "lagged_start"), ShowCreation(random_vectors, lag_ratio = 0.5),
run_time = 1 run_time = 1
) )
self.wait(2) self.wait(2)
@ -461,7 +461,7 @@ class HowIWantYouToThinkAboutVectors(Scene):
self.play(ShowCreation(vector)) self.play(ShowCreation(vector))
self.wait(2) self.wait(2)
self.play( self.play(
ShowCreation(plane, summobject_mode = "lagged_start"), ShowCreation(plane, lag_ratio=0.5),
Animation(vector) Animation(vector)
) )
self.play(Write(axis_labels, run_time = 1)) self.play(Write(axis_labels, run_time = 1))

View file

@ -819,7 +819,7 @@ class SymbolicEigenvectors(Scene):
self.wait() self.wait()
self.play(Transform( self.play(Transform(
q_marks, matrix.get_entries(), q_marks, matrix.get_entries(),
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 2 run_time = 2
)) ))
self.remove(q_marks) self.remove(q_marks)
@ -1449,7 +1449,7 @@ class RevisitExampleTransformation(ExampleTranformationScene):
self.play( self.play(
ShowCreation( ShowCreation(
vectors, vectors,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 2 run_time = 2
), ),
*list(map(Animation, self.foreground_mobjects)) *list(map(Animation, self.foreground_mobjects))

View file

@ -623,7 +623,7 @@ class FunctionGraphScene(Scene):
def add_lines(self, output_lines): def add_lines(self, output_lines):
self.play(ShowCreation( self.play(ShowCreation(
output_lines, output_lines,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 2 run_time = 2
)) ))
@ -750,7 +750,7 @@ class AddTwoFunctions(FunctionGraphScene):
kwargs = {} kwargs = {}
else: else:
kwargs = { kwargs = {
"submobject_mode" : "lagged_start", "lag_ratio" : 0.5,
"run_time" : 3 "run_time" : 3
} }
self.play(*[ self.play(*[
@ -926,7 +926,7 @@ class FromVectorsToFunctions(VectorScene):
words.to_corner(UP+LEFT) words.to_corner(UP+LEFT)
self.play(FadeIn( self.play(FadeIn(
words, words,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 3 run_time = 3
)) ))
self.wait() self.wait()
@ -1643,7 +1643,7 @@ class IntroducePolynomialSpace(Scene):
self.play(Write(coords.get_brackets())) self.play(Write(coords.get_brackets()))
self.play( self.play(
entries.restore, entries.restore,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 3 run_time = 3
) )
self.wait() self.wait()
@ -1668,7 +1668,7 @@ class IntroducePolynomialSpace(Scene):
self.wait() self.wait()
self.play(FadeIn( self.play(FadeIn(
VGroup(*more_terms), VGroup(*more_terms),
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 2 run_time = 2
)) ))
self.wait() self.wait()
@ -1738,7 +1738,7 @@ class IntroducePolynomialSpace(Scene):
for anim in MoveToTarget(diag_entries), diag_entries.restore: for anim in MoveToTarget(diag_entries), diag_entries.restore:
self.play( self.play(
anim, anim,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 1.5, run_time = 1.5,
) )
self.wait() self.wait()
@ -2109,7 +2109,7 @@ class ToolsOfLinearAlgebra(Scene):
words[-1].next_to(words[-2], DOWN) words[-1].next_to(words[-2], DOWN)
self.play(FadeIn( self.play(FadeIn(
words, words,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 3 run_time = 3
)) ))
self.wait() self.wait()
@ -2227,7 +2227,7 @@ class ListAxioms(Scene):
self.play(FadeIn( self.play(FadeIn(
axioms, axioms,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 5 run_time = 5
)) ))
self.wait() self.wait()
@ -2282,7 +2282,7 @@ class AxiomsAreInterface(Scene):
self.play(FadeIn(mathy)) self.play(FadeIn(mathy))
self.play( self.play(
ShowCreation(double_arrow), ShowCreation(double_arrow),
FadeIn(others, submobject_mode = "lagged_start", run_time = 2) FadeIn(others, lag_ratio = 0.5, run_time = 2)
) )
self.play(axioms.copy().next_to, double_arrow, UP) self.play(axioms.copy().next_to, double_arrow, UP)
self.play(Blink(mathy)) self.play(Blink(mathy))
@ -2326,7 +2326,7 @@ class VectorSpaceOfPiCreatures(Scene):
self.play(FadeIn( self.play(FadeIn(
creatures, creatures,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 3 run_time = 3
)) ))
self.wait() self.wait()
@ -2502,7 +2502,7 @@ class WhatIsThree(Scene):
self.play(*[ self.play(*[
Transform( Transform(
trip, three, trip, three,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 2 run_time = 2
) )
for trip in triplets for trip in triplets

View file

@ -127,7 +127,7 @@ class DescribeTransformation(Scene):
for mob in f_point, num_outputs: for mob in f_point, num_outputs:
self.play(Transform( self.play(Transform(
num_inputs, mob, num_inputs, mob,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.wait() self.wait()
@ -143,7 +143,7 @@ class DescribeTransformation(Scene):
for mob in f_point, output_vect: for mob in f_point, output_vect:
self.play(Transform( self.play(Transform(
input_vect, mob, input_vect, mob,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.play(Write(vector_output_words)) self.play(Write(vector_output_words))
self.wait() self.wait()
@ -259,13 +259,13 @@ class TransformManyVectors(LinearTransformationScene):
for v in vectors.split() for v in vectors.split()
]) ])
self.play(ShowCreation(vectors, submobject_mode = "lagged_start")) self.play(ShowCreation(vectors, lag_ratio = 0.5))
self.wait() self.wait()
if self.use_dots: if self.use_dots:
self.play(Transform( self.play(Transform(
vectors, self.vectors_to_dots(vectors), vectors, self.vectors_to_dots(vectors),
run_time = 3, run_time = 3,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
transformed_vectors = self.vectors_to_dots(transformed_vectors) transformed_vectors = self.vectors_to_dots(transformed_vectors)
self.wait() self.wait()
@ -279,7 +279,7 @@ class TransformManyVectors(LinearTransformationScene):
self.play(Transform( self.play(Transform(
vectors, self.dots_to_vectors(vectors), vectors, self.dots_to_vectors(vectors),
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.wait() self.wait()
@ -312,7 +312,7 @@ class TransformInfiniteGrid(LinearTransformationScene):
def construct(self): def construct(self):
self.setup() self.setup()
self.play(ShowCreation( self.play(ShowCreation(
self.plane, run_time = 3, submobject_mode = "lagged_start" self.plane, run_time = 3, lag_ratio = 0.5
)) ))
self.wait() self.wait()
self.apply_transposed_matrix([[2, 1], [1, 2]]) self.apply_transposed_matrix([[2, 1], [1, 2]])
@ -386,7 +386,7 @@ class LookToWordLinear(Scene):
Transform(transformation, faded_transformation), Transform(transformation, faded_transformation),
Transform(transformation_brace, linear_brace), Transform(transformation_brace, linear_brace),
Transform(function, new_sub_word), Transform(function, new_sub_word),
submobject_mode = "lagged_start" lag_ratio = 0.5
) )
self.wait() self.wait()
@ -772,10 +772,10 @@ class WatchManyVectorsMove(TransformManyVectors):
]) ])
vectors.set_submobject_colors_by_gradient(PINK, YELLOW) vectors.set_submobject_colors_by_gradient(PINK, YELLOW)
dots = self.vectors_to_dots(vectors) dots = self.vectors_to_dots(vectors)
self.play(ShowCreation(dots, submobject_mode = "lagged_start")) self.play(ShowCreation(dots, lag_ratio = 0.5))
self.play(Transform( self.play(Transform(
dots, vectors, dots, vectors,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 2 run_time = 2
)) ))
self.remove(dots) self.remove(dots)
@ -1053,7 +1053,7 @@ class MatrixVectorMultiplication(LinearTransformationScene):
self.play( self.play(
FadeIn(brace), FadeIn(brace),
FadeIn(brace_words), FadeIn(brace_words),
submobject_mode = "lagged_start" lag_ratio = 0.5
) )
self.wait() self.wait()

View file

@ -671,11 +671,11 @@ class GeneralMultiplication(MoreComplicatedExampleNumerically):
self.play(Write(words, run_time = 2)) self.play(Write(words, run_time = 2))
self.play(Transform( self.play(Transform(
m1_entries, m1_entries_target, m1_entries, m1_entries_target,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.play(Transform( self.play(Transform(
m2_entries, m2_entries_target, m2_entries, m2_entries_target,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.wait() self.wait()
@ -761,7 +761,7 @@ class AskAboutCommutativity(Scene):
self.play(Transform( self.play(Transform(
VMobject(eq, q_marks), VMobject(eq, q_marks),
VMobject(neq), VMobject(neq),
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.wait() self.wait()
@ -912,7 +912,7 @@ class AskAssociativityQuestion(Scene):
for letter, matrix in zip([a, b, c], matrices): for letter, matrix in zip([a, b, c], matrices):
self.play(Transform( self.play(Transform(
letter.copy(), matrix, letter.copy(), matrix,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.remove(*self.get_mobjects_from_last_animation()) self.remove(*self.get_mobjects_from_last_animation())
self.add(matrix) self.add(matrix)

View file

@ -261,7 +261,7 @@ class WhatHappensToOneSquareHappensToAll(LinearTransformationScene):
square.shift(position) square.shift(position)
squares.add(square) squares.add(square)
self.play(FadeIn( self.play(FadeIn(
squares, submobject_mode = "lagged_start", squares, lag_ratio = 0.5,
run_time = 3 run_time = 3
)) ))
self.add_transformable_mobject(squares) self.add_transformable_mobject(squares)
@ -295,7 +295,7 @@ class BreakBlobIntoGridSquares(LinearTransformationScene):
if blob.probably_contains(point): if blob.probably_contains(point):
squares.add(square.copy().shift(point)) squares.add(square.copy().shift(point))
self.play(ShowCreation( self.play(ShowCreation(
squares, submobject_mode = "lagged_start", squares, lag_ratio = 0.5,
run_time = 2, run_time = 2,
)) ))
self.add_transformable_mobject(squares) self.add_transformable_mobject(squares)
@ -418,7 +418,7 @@ class NextFewVideos(Scene):
icons.to_edge(LEFT) icons.to_edge(LEFT)
self.play( self.play(
FadeIn(icons, submobject_mode = "lagged_start"), FadeIn(icons, lag_ratio = 0.5),
run_time = 3 run_time = 3
) )
self.wait() self.wait()
@ -485,7 +485,7 @@ class FlipSpaceOver(Scene):
plane.add(text) plane.add(text)
self.play(ShowCreation( self.play(ShowCreation(
plane1, submobject_mode = "lagged_start", plane1, lag_ratio = 0.5,
run_time = 1 run_time = 1
)) ))
self.wait() self.wait()
@ -971,7 +971,7 @@ class FullFormulaExplanation(LinearTransformationScene):
everyone.add(shape, tex_mob) everyone.add(shape, tex_mob)
self.play(FadeIn( self.play(FadeIn(
everyone, everyone,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 1 run_time = 1
)) ))

View file

@ -180,7 +180,7 @@ class StockPrices(Scene):
self.play(ShowCreation( self.play(ShowCreation(
VMobject(*stock_lines), VMobject(*stock_lines),
run_time = 3, run_time = 3,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.wait() self.wait()
@ -287,7 +287,7 @@ class SystemOfEquations(Scene):
self.play(other_equations.fade, 0.7) self.play(other_equations.fade, 0.7)
self.play(Transform(scaled_vars, isolated_scaled_vars)) self.play(Transform(scaled_vars, isolated_scaled_vars))
self.play(scalars.set_color, YELLOW, submobject_mode = "lagged_start") self.play(scalars.set_color, YELLOW, lag_ratio = 0.5)
self.play(*[ self.play(*[
ApplyMethod(m.scale_in_place, 1.2, rate_func = there_and_back) ApplyMethod(m.scale_in_place, 1.2, rate_func = there_and_back)
for m in scalars.split() for m in scalars.split()
@ -675,7 +675,7 @@ class ShowBijectivity(LinearTransformationScene):
self.add_foreground_mobject(background, titles[0]) self.add_foreground_mobject(background, titles[0])
kwargs = { kwargs = {
"submobject_mode" : "lagged_start", "lag_ratio" : 0.5,
"run_time" : 2 "run_time" : 2
} }
anims = list(map(Animation, self.foreground_mobjects)) anims = list(map(Animation, self.foreground_mobjects))
@ -1680,7 +1680,7 @@ class NameNullSpace(LinearTransformationScene):
self.play(Transform( self.play(Transform(
vectors, line, vectors, line,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.wait() self.wait()
for label in null_space_label, kernel_label: for label in null_space_label, kernel_label:

View file

@ -72,7 +72,7 @@ class TraditionalOrdering(RandolphScene):
FadeIn( FadeIn(
topics, topics,
run_time = 3, run_time = 3,
submobject_mode = "lagged_start" lag_ratio = 0.5
), ),
) )
self.play(topics[1].set_color, PINK) self.play(topics[1].set_color, PINK)
@ -118,7 +118,7 @@ class ThisSeriesOrdering(RandolphScene):
self.play( self.play(
FadeIn( FadeIn(
chapters, chapters,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 3 run_time = 3
), ),
self.randy.change_mode, "sassy" self.randy.change_mode, "sassy"
@ -1043,7 +1043,7 @@ class AlwaysfollowIHatJHat(TeacherStudentsScene):
]) ])
self.play(Transform( self.play(Transform(
students, ponderers, students, ponderers,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 2 run_time = 2
)) ))
self.random_blink(2) self.random_blink(2)
@ -1309,14 +1309,14 @@ class AssociationBetweenMatricesAndVectors(Scene):
self.play(Transform( self.play(Transform(
vectors, matrices, vectors, matrices,
path_arc = np.pi/2, path_arc = np.pi/2,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 2, run_time = 2,
)) ))
self.wait() self.wait()
self.play( self.play(
vectors.restore, vectors.restore,
path_arc = -np.pi/2, path_arc = -np.pi/2,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 2 run_time = 2
) )
self.wait() self.wait()
@ -1475,7 +1475,7 @@ class ProjectOntoUnitVectorNumberline(VectorScene):
proj_lines = self.get_proj_lines(dots, proj_dots) proj_lines = self.get_proj_lines(dots, proj_dots)
self.wait() self.wait()
self.play(FadeIn(vectors, submobject_mode = "lagged_start")) self.play(FadeIn(vectors, lag_ratio = 0.5))
self.wait() self.wait()
self.play(Transform(vectors, dots)) self.play(Transform(vectors, dots))
self.wait() self.wait()
@ -1486,7 +1486,7 @@ class ProjectOntoUnitVectorNumberline(VectorScene):
Transform(vectors, proj_dots), Transform(vectors, proj_dots),
Transform(proj_lines, proj_dots), Transform(proj_lines, proj_dots),
Animation(self.u_hat), Animation(self.u_hat),
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 2 run_time = 2
) )
self.wait() self.wait()

View file

@ -438,7 +438,7 @@ class DefineDualTransform(Scene):
self.play(FadeIn( self.play(FadeIn(
definitions, definitions,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.wait(2) self.wait(2)
self.play(*[ self.play(*[
@ -622,7 +622,7 @@ class DefineDualTransform(Scene):
self.play(Transform( self.play(Transform(
func, p_array, func, p_array,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.remove(func) self.remove(func)
self.add(p_array) self.add(p_array)

View file

@ -723,7 +723,7 @@ class JennysGrid(JenniferScene):
ShowCreation( ShowCreation(
self.jenny_plane, self.jenny_plane,
run_time = 3, run_time = 3,
submobject_mode = "lagged_start" lag_ratio = 0.5
), ),
self.jenny.change_mode, "speaking", self.jenny.change_mode, "speaking",
self.jenny.look_at, ORIGIN, self.jenny.look_at, ORIGIN,

View file

@ -75,8 +75,8 @@ class SymbolicThreeDTransform(Scene):
self.play(Write(in_vect), Write(in_words)) self.play(Write(in_vect), Write(in_words))
self.wait() self.wait()
self.add(in_vect.copy()) self.add(in_vect.copy())
self.play(Transform(in_vect, point, submobject_mode = "lagged_start")) self.play(Transform(in_vect, point, lag_ratio = 0.5))
self.play(Transform(in_vect, out_vect, submobject_mode = "lagged_start")) self.play(Transform(in_vect, out_vect, lag_ratio = 0.5))
self.add(out_words) self.add(out_words)
self.wait() self.wait()
@ -227,7 +227,7 @@ class ShowVCoordinateMeaning(Scene):
coords.get_entries().copy(), coords.get_entries().copy(),
VMobject(new_x, new_y, new_z), VMobject(new_x, new_y, new_z),
path_arc = -np.pi, path_arc = -np.pi,
submobject_mode = "lagged_start" lag_ratio = 0.5
), ),
Write(VMobject(*[eq2, i, j, k] + list(plusses))), Write(VMobject(*[eq2, i, j, k] + list(plusses))),
run_time = 3 run_time = 3

View file

@ -247,7 +247,7 @@ class EndScreen(PiCreatureScene):
FadeIn( FadeIn(
words, words,
run_time=2, run_time=2,
submobject_mode="lagged_start" lag_ratio=0.5
), ),
self.pi_creature.change_mode, "hooray" self.pi_creature.change_mode, "hooray"
) )

View file

@ -3125,7 +3125,7 @@ class WriteComplexExponentialExpression(DrawFrequencyPlot):
self.play( self.play(
ReplacementTransform( ReplacementTransform(
pre_dots, time_graph.dots, pre_dots, time_graph.dots,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 2, run_time = 2,
), ),
MoveToTarget(time_graph), MoveToTarget(time_graph),
@ -3465,7 +3465,7 @@ class ScaleUpCenterOfMass(WriteComplexExponentialExpression):
# com_vector_copies, # com_vector_copies,
# path_arc = TAU/10, # path_arc = TAU/10,
# run_time = 1.5, # run_time = 1.5,
# submobject_mode = "lagged_start" # lag_ratio = 0.5
# )) # ))
self.wait() self.wait()

View file

@ -6,7 +6,7 @@ class FractalCreation(Scene):
"max_order" : 5, "max_order" : 5,
"transform_kwargs" : { "transform_kwargs" : {
"path_arc" : np.pi/6, "path_arc" : np.pi/6,
"submobject_mode" : "lagged_start", "lag_ratio" : 0.5,
"run_time" : 2, "run_time" : 2,
}, },
"fractal_kwargs" : {}, "fractal_kwargs" : {},
@ -79,7 +79,7 @@ class KochSnowFlakeFractalCreation(FractalCreation):
"num_submobjects" : 100, "num_submobjects" : 100,
}, },
"transform_kwargs" : { "transform_kwargs" : {
"submobject_mode" : "lagged_start", "lag_ratio" : 0.5,
"path_arc" : np.pi/6, "path_arc" : np.pi/6,
"run_time" : 2, "run_time" : 2,
}, },

View file

@ -50,7 +50,7 @@ class SierpinskiTest(Scene):
self.play(FadeIn( self.play(FadeIn(
sierp, sierp,
run_time = 5, run_time = 5,
submobject_mode = "lagged_start", lag_ratio = 0.5,
)) ))
self.wait() self.wait()
# self.play(sierp.scale, 2, sierp.get_top()) # self.play(sierp.scale, 2, sierp.get_top())
@ -242,7 +242,7 @@ class IntroduceSierpinskiTriangle(PiCreatureScene):
self.play(FadeIn( self.play(FadeIn(
sierp, sierp,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.wait() self.wait()
self.play( self.play(
@ -867,7 +867,7 @@ class ScaledLineMass(Scene):
self.wait() self.wait()
self.play(FadeIn( self.play(FadeIn(
VGroup(*shape_copy[1:]), VGroup(*shape_copy[1:]),
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.wait() self.wait()
self.play(Transform( self.play(Transform(

View file

@ -161,7 +161,7 @@ class CountingScene(Scene):
result.append(ShowCreation(arrow)) result.append(ShowCreation(arrow))
result.append(Transform( result.append(Transform(
self.number_mob, new_number_mob, self.number_mob, new_number_mob,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
return result return result
@ -621,7 +621,7 @@ class IntroduceTowersOfHanoi(TowersOfHanoiScene):
self.play( self.play(
ApplyMethod( ApplyMethod(
self.pegs.restore, self.pegs.restore,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 2 run_time = 2
), ),
Write(self.peg_labels) Write(self.peg_labels)
@ -658,7 +658,7 @@ class IntroduceTowersOfHanoi(TowersOfHanoiScene):
self.play(FadeIn( self.play(FadeIn(
disk_groups, disk_groups,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
for group in reversed(list(disk_groups)): for group in reversed(list(disk_groups)):
self.play(group.restore) self.play(group.restore)
@ -710,7 +710,7 @@ class IntroduceTowersOfHanoi(TowersOfHanoiScene):
def move_full_tower(self): def move_full_tower(self):
self.move_subtower_to_peg(self.num_disks, 1, run_time = 2) self.move_subtower_to_peg(self.num_disks, 1, run_time = 2)
self.wait() self.wait()
self.reset_disks(run_time = 1, submobject_mode = "lagged_start") self.reset_disks(run_time = 1, lag_ratio = 0.5)
self.wait() self.wait()
def move_single_disk(self): def move_single_disk(self):
@ -885,7 +885,7 @@ class IntroduceBase10(Scene):
MoveToTarget(number), MoveToTarget(number),
ShowCreation(arrows), ShowCreation(arrows),
ApplyMethod( ApplyMethod(
expansion.restore, submobject_mode = "lagged_start"), expansion.restore, lag_ratio = 0.5),
run_time = 2 run_time = 2
) )
self.play(Write(title)) self.play(Write(title))
@ -1180,7 +1180,7 @@ class BinaryCountingAtEveryScale(Scene):
self.play(Transform( self.play(Transform(
VGroup(*reversed(list(curr_bits))), VGroup(*reversed(list(curr_bits))),
VGroup(*reversed(list(bit_mobs[2**(self.num_bits-1)]))), VGroup(*reversed(list(bit_mobs[2**(self.num_bits-1)]))),
submobject_mode = "lagged_start", lag_ratio = 0.5,
lag_factor = self.num_bits lag_factor = self.num_bits
)) ))
self.wait() self.wait()
@ -1371,7 +1371,7 @@ class IntroduceSolveByCounting(TowersOfHanoiScene):
return Succession( return Succession(
Transform( Transform(
self.curr_bit_mob, next(self.bit_mobs_iter), self.curr_bit_mob, next(self.bit_mobs_iter),
submobject_mode = "lagged_start", lag_ratio = 0.5,
path_arc = -np.pi/3 path_arc = -np.pi/3
), ),
Animation(self.curr_bit_mob) Animation(self.curr_bit_mob)
@ -2199,7 +2199,7 @@ class RecursiveSolutionToConstrained(RecursiveSolution):
self.play(ApplyMethod( self.play(ApplyMethod(
VGroup(VGroup(braces[-2], subdivisions[-2])).set_fill, None, 1, VGroup(VGroup(braces[-2], subdivisions[-2])).set_fill, None, 1,
run_time = 3, run_time = 3,
submobject_mode = "lagged_start", lag_ratio = 0.5,
)) ))
self.blink() self.blink()
for mob in last_subdivisions: for mob in last_subdivisions:
@ -2271,7 +2271,7 @@ class SolveConstrainedByCounting(ConstrainedTowersOfHanoiScene):
return Succession( return Succession(
Transform( Transform(
self.curr_ternary_mob, next(self.ternary_mob_iter), self.curr_ternary_mob, next(self.ternary_mob_iter),
submobject_mode = "lagged_start", lag_ratio = 0.5,
path_arc = np.pi/6, path_arc = np.pi/6,
), ),
Animation(self.curr_ternary_mob), Animation(self.curr_ternary_mob),
@ -2438,7 +2438,7 @@ class TernaryCountingSelfSimilarPattern(Scene):
def get_increment(): def get_increment():
return Transform( return Transform(
curr_ternary_mob, next(ternary_mob_iter), curr_ternary_mob, next(ternary_mob_iter),
submobject_mode = "lagged_start", lag_ratio = 0.5,
path_arc = -np.pi/3 path_arc = -np.pi/3
) )
@ -2506,7 +2506,7 @@ class SolveConstrainedWithTernaryCounting(ConstrainedTowersOfHanoiScene):
self.play(Transform( self.play(Transform(
self.curr_ternary_mob, next(self.ternary_mob_iter), self.curr_ternary_mob, next(self.ternary_mob_iter),
path_arc = -np.pi/3, path_arc = -np.pi/3,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = run_time, run_time = run_time,
)) ))
@ -2810,7 +2810,7 @@ class ShowSomeGraph(Scene):
mob.set_color_by_gradient(YELLOW, MAROON_B) mob.set_color_by_gradient(YELLOW, MAROON_B)
self.play(ShowCreation( self.play(ShowCreation(
mob, mob,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 2, run_time = 2,
)) ))
self.wait() self.wait()
@ -2969,7 +2969,7 @@ class IntroduceGraphStructure(SierpinskiGraphScene):
self.play(FadeIn( self.play(FadeIn(
self.nodes, self.nodes,
run_time = 3, run_time = 3,
submobject_mode = "lagged_start", lag_ratio = 0.5,
lag_factor = 7, lag_factor = 7,
)) ))
vect = LEFT vect = LEFT

View file

@ -2863,7 +2863,7 @@ class FiveDBoxExampleWithSliders(FourDBoxExampleWithSliders):
MoveToTarget( MoveToTarget(
re_rects, re_rects,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start", lag_ratio = 0.5,
path_arc = np.pi path_arc = np.pi
), ),
MoveToTarget(self.re_words), MoveToTarget(self.re_words),
@ -2997,7 +2997,7 @@ class TenDBoxExampleWithSliders(FiveDBoxExampleWithSliders):
MoveToTarget( MoveToTarget(
re_rects, re_rects,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start", lag_ratio = 0.5,
path_arc = np.pi path_arc = np.pi
), ),
) )

View file

@ -641,7 +641,7 @@ class Outline(PiCreatureScene):
FadeIn( FadeIn(
mob, mob,
run_time = 3, run_time = 3,
submobject_mode = "lagged_start" lag_ratio = 0.5
) )
for mob in [chis, arrows, numerators] for mob in [chis, arrows, numerators]
]) ])
@ -818,7 +818,7 @@ class CountLatticePoints(LatticePointScene):
ReplacementTransform( ReplacementTransform(
point_copies, squares, point_copies, squares,
run_time = 3, run_time = 3,
submobject_mode = "lagged_start", lag_ratio = 0.5,
lag_factor = 4, lag_factor = 4,
), ),
Animation(self.lattice_points) Animation(self.lattice_points)
@ -1229,7 +1229,7 @@ class LookAtExampleRing(LatticePointScene):
about_point = self.plane_center, about_point = self.plane_center,
rate_func = smooth, rate_func = smooth,
), ),
FadeIn(points, submobject_mode = "lagged_start"), FadeIn(points, lag_ratio = 0.5),
run_time = 2, run_time = 2,
) )
self.wait() self.wait()
@ -1487,7 +1487,7 @@ class IntroduceComplexConjugate(LatticePointScene):
self.play(FadeIn( self.play(FadeIn(
equation, equation,
run_time = 3, run_time = 3,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.wait(2) self.wait(2)
self.play( self.play(
@ -1681,7 +1681,7 @@ class IntroduceComplexConjugate(LatticePointScene):
) )
self.play(FadeIn( self.play(FadeIn(
top_dot.magnitude_word, top_dot.magnitude_word,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.wait() self.wait()
self.play(ShowCreation(top_dot.arc)) self.play(ShowCreation(top_dot.arc))
@ -1770,7 +1770,7 @@ class NameGaussianIntegers(LatticePointScene):
self.play(FadeIn( self.play(FadeIn(
gauss_name, gauss_name,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.wait(3) self.wait(3)
self.play(FadeOut(gauss_name)) self.play(FadeOut(gauss_name))
@ -2249,7 +2249,7 @@ class FactorizationPattern(Scene):
self.play(FadeIn( self.play(FadeIn(
factorizations, factorizations,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.wait(4) self.wait(4)
self.play(*list(map(FadeOut, [movers, factorizations]))) self.play(*list(map(FadeOut, [movers, factorizations])))
@ -3539,7 +3539,7 @@ class IntroduceChi(FactorizationPattern):
FadeIn( FadeIn(
mob, mob,
run_time = 3, run_time = 3,
submobject_mode = "lagged_start" lag_ratio = 0.5
) )
for mob in [chis, arrows, numbers] for mob in [chis, arrows, numbers]
]) ])
@ -3636,7 +3636,7 @@ class IntroduceChi(FactorizationPattern):
else: else:
self.play( self.play(
Write(labels), Write(labels),
FadeIn(arrows, submobject_mode = "lagged_start"), FadeIn(arrows, lag_ratio = 0.5),
OldLaggedStart( OldLaggedStart(
DrawBorderThenFill, dots, DrawBorderThenFill, dots,
stroke_width = 4, stroke_width = 4,
@ -4063,7 +4063,7 @@ class ExpandCountWith45(SummarizeCountingRule):
self.play(FadeIn( self.play(FadeIn(
braces, braces,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start", lag_ratio = 0.5,
)) ))
self.wait(2) self.wait(2)

View file

@ -492,7 +492,7 @@ class ThisPuzzleIsHard(UtilitiesPuzzleScene, PiCreatureScene):
self.play(Transform( self.play(Transform(
straight_lines, almost_solution_lines, straight_lines, almost_solution_lines,
run_time = 3, run_time = 3,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.wait() self.wait()
@ -546,7 +546,7 @@ class IntroduceGraph(PiCreatureScene):
self.play(ReplacementTransform( self.play(ReplacementTransform(
pi_creatures, dots, pi_creatures, dots,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.add_foreground_mobjects(dots) self.add_foreground_mobjects(dots)
self.play( self.play(
@ -620,7 +620,7 @@ class IsK33Planar(UtilitiesPuzzleScene):
self.play(ReplacementTransform( self.play(ReplacementTransform(
straight_lines, almost_solution_lines, straight_lines, almost_solution_lines,
run_time = 3, run_time = 3,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.wait(2) self.wait(2)

View file

@ -692,7 +692,7 @@ class ComputationalNetwork(MovingCameraScene):
self.wait() self.wait()
self.play(ReplacementTransform( self.play(ReplacementTransform(
full_derivative.copy(), rhs, full_derivative.copy(), rhs,
submobject_mode="lagged_start", lag_ratio=0.5,
run_time=2 run_time=2
)) ))
self.wait() self.wait()

View file

@ -237,7 +237,7 @@ class NetworkMobject(VGroup):
return [ShowCreationThenDestruction( return [ShowCreationThenDestruction(
edge_group_copy, edge_group_copy,
run_time = self.edge_propogation_time, run_time = self.edge_propogation_time,
submobject_mode = "lagged_start" lag_ratio = 0.5
)] )]
def add_output_labels(self): def add_output_labels(self):
@ -428,14 +428,14 @@ class ExampleThrees(PiCreatureScene):
moving_three.target[0].set_stroke(width = 0) moving_three.target[0].set_stroke(width = 0)
moving_three.target[1].space_out_submobjects(1.5) moving_three.target[1].space_out_submobjects(1.5)
self.play(MoveToTarget( self.play(MoveToTarget(
moving_three, submobject_mode = "lagged_start" moving_three, lag_ratio = 0.5
)) ))
self.play( self.play(
Animation(randy), Animation(randy),
moving_three.replace, randy.eyes[1], moving_three.replace, randy.eyes[1],
moving_three.scale_in_place, 0.7, moving_three.scale_in_place, 0.7,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start", lag_ratio = 0.5,
) )
self.play( self.play(
Animation(randy), Animation(randy),
@ -668,7 +668,7 @@ class LayOutPlan(TeacherStudentsScene, NetworkScene):
) )
self.play(ShowCreation( self.play(ShowCreation(
network_mob.edge_groups, network_mob.edge_groups,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 2, run_time = 2,
lag_factor = 8, lag_factor = 8,
rate_func=linear, rate_func=linear,
@ -870,7 +870,7 @@ class AlternateNeuralNetworks(PiCreatureScene):
self.wait() self.wait()
self.play( self.play(
examples[0].shift, MED_LARGE_BUFF*UP, examples[0].shift, MED_LARGE_BUFF*UP,
FadeIn(examples[1], submobject_mode = "lagged_start"), FadeIn(examples[1], lag_ratio = 0.5),
) )
self.wait() self.wait()
self.play( self.play(
@ -1424,7 +1424,7 @@ class MoreHonestMNistNetworkPreview(IntroduceEachLayer):
return Transform( return Transform(
mover, target, mover, target,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start", lag_ratio = 0.5,
remover = True remover = True
) )
@ -1655,7 +1655,7 @@ class BreakUpMacroPatterns(IntroduceEachLayer):
self.play( self.play(
FadeIn( FadeIn(
network_mob, network_mob,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 3, run_time = 3,
), ),
MoveToTarget(patterns) MoveToTarget(patterns)
@ -2003,7 +2003,7 @@ class SecondLayerIsLittleEdgeLayer(IntroduceEachLayer):
ShowCreationThenDestruction( ShowCreationThenDestruction(
edge_groups[i-1], edge_groups[i-1],
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
), ),
FadeIn(active_layers[i]) FadeIn(active_layers[i])
) )
@ -2014,7 +2014,7 @@ class SecondLayerIsLittleEdgeLayer(IntroduceEachLayer):
self.play(MoveToTarget( self.play(MoveToTarget(
neurons, neurons,
remover = True, remover = True,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 2 run_time = 2
)) ))
@ -2075,7 +2075,7 @@ class SecondLayerIsLittleEdgeLayer(IntroduceEachLayer):
self.play(MoveToTarget( self.play(MoveToTarget(
image_group, image_group,
rate_func = there_and_back, rate_func = there_and_back,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 2, run_time = 2,
)) ))
@ -2254,7 +2254,7 @@ class IntroduceWeights(IntroduceEachLayer):
FadeOut(self.network_mob.output_labels), FadeOut(self.network_mob.output_labels),
Animation(neuron), Animation(neuron),
neuron.edges_in.set_stroke, None, 2, neuron.edges_in.set_stroke, None, 2,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 2 run_time = 2
) )
@ -2279,13 +2279,13 @@ class IntroduceWeights(IntroduceEachLayer):
FadeIn(rect), FadeIn(rect),
ShowCreation( ShowCreation(
pixels, pixels,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 2, run_time = 2,
) )
) )
self.play( self.play(
pixels_to_detect.set_fill, WHITE, 1, pixels_to_detect.set_fill, WHITE, 1,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 2 run_time = 2
) )
self.wait(2) self.wait(2)
@ -2507,7 +2507,7 @@ class IntroduceWeights(IntroduceEachLayer):
self.play( self.play(
FadeIn( FadeIn(
VGroup(*weight_grid[len(decimals):]), VGroup(*weight_grid[len(decimals):]),
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 3 run_time = 3
), ),
*[ *[
@ -2538,13 +2538,13 @@ class IntroduceWeights(IntroduceEachLayer):
self.play(MoveToTarget( self.play(MoveToTarget(
weight_grid, weight_grid,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.wait() self.wait()
self.play(Transform( self.play(Transform(
pixels, digit, pixels, digit,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.wait() self.wait()
self.play(weight_grid.move_to, pixels) self.play(weight_grid.move_to, pixels)
@ -2554,7 +2554,7 @@ class IntroduceWeights(IntroduceEachLayer):
self.pixels_to_detect.copy(), self.pixels_to_detect.copy(),
self.weighted_sum, self.weighted_sum,
run_time = 3, run_time = 3,
submobject_mode = "lagged_start" lag_ratio = 0.5
), ),
Animation(weight_grid), Animation(weight_grid),
) )
@ -2878,7 +2878,7 @@ class IncludeBias(IntroduceWeights):
colored_pixels.shift, MED_LARGE_BUFF*UP, colored_pixels.shift, MED_LARGE_BUFF*UP,
rate_func = there_and_back, rate_func = there_and_back,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.wait() self.wait()
@ -3037,7 +3037,7 @@ class ShowRemainingNetwork(IntroduceWeights):
] ]
edges.set_stroke(width = 2) edges.set_stroke(width = 2)
self.play( self.play(
ShowCreation(edges, submobject_mode = "lagged_start"), ShowCreation(edges, lag_ratio = 0.5),
FadeIn(neuron), FadeIn(neuron),
*added_anims, *added_anims,
run_time = 1.5 run_time = 1.5
@ -3597,7 +3597,7 @@ class IntroduceWeightMatrix(NetworkScene):
self.play(FadeIn( self.play(FadeIn(
lower_rows, lower_rows,
run_time = 3, run_time = 3,
submobject_mode = "lagged_start", lag_ratio = 0.5,
)) ))
self.wait() self.wait()
@ -4072,7 +4072,7 @@ class NeuronIsFunction(MoreHonestMNistNetworkPreview):
FadeIn( FadeIn(
mob, mob,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
) )
for mob in (self.network_mob.layers, self.network_mob.edge_groups) for mob in (self.network_mob.layers, self.network_mob.edge_groups)
] ]

View file

@ -213,7 +213,7 @@ class PreviewLearning(NetworkScene):
layer_animation = Transform( layer_animation = Transform(
VGroup(*layers), VGroup(*active_layers), VGroup(*layers), VGroup(*active_layers),
run_time = run_time, run_time = run_time,
submobject_mode = "lagged_start", lag_ratio = 0.5,
rate_func=linear, rate_func=linear,
) )
@ -615,7 +615,7 @@ class IntroduceCostFunction(PreviewLearning):
edges.remove(*neuron.edges_in) edges.remove(*neuron.edges_in)
output_labels = network_mob.output_labels output_labels = network_mob.output_labels
kwargs = { kwargs = {
"submobject_mode" : "lagged_start", "lag_ratio" : 0.5,
"run_time" : 2, "run_time" : 2,
} }
self.play( self.play(
@ -694,7 +694,7 @@ class IntroduceCostFunction(PreviewLearning):
neuron.set_fill, None, 0.5, neuron.set_fill, None, 0.5,
FadeIn(formula), FadeIn(formula),
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
) )
self.play(OldLaggedStart( self.play(OldLaggedStart(
ShowCreationThenDestruction, ShowCreationThenDestruction,
@ -813,7 +813,7 @@ class IntroduceCostFunction(PreviewLearning):
) )
self.play( self.play(
MoveToTarget( MoveToTarget(
neurons, submobject_mode = "lagged_start", neurons, lag_ratio = 0.5,
remover = True remover = True
), ),
layer0.neurons.set_fill, None, 0, layer0.neurons.set_fill, None, 0,
@ -1269,7 +1269,7 @@ class EmphasizeComplexityOfCostFunction(IntroduceCostFunction):
dot.move_to(input_words.get_right()) dot.move_to(input_words.get_right())
dot.set_fill(opacity = 0.5) dot.set_fill(opacity = 0.5)
self.play(FadeIn(input_words[1], submobject_mode = "lagged_start")) self.play(FadeIn(input_words[1], lag_ratio = 0.5))
self.play( self.play(
dot.move_to, image, dot.move_to, image,
dot.set_fill, None, 0, dot.set_fill, None, 0,
@ -2023,7 +2023,7 @@ class ShowFullCostFunctionGradient(PreviewLearning):
ReplacementTransform( ReplacementTransform(
edges, edges_target, edges, edges_target,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
), ),
OldLaggedStart(FadeIn, words), OldLaggedStart(FadeIn, words),
) )
@ -2072,7 +2072,7 @@ class ShowFullCostFunctionGradient(PreviewLearning):
self.play( self.play(
Transform( Transform(
nd, VectorizedPoint(od.get_center()), nd, VectorizedPoint(od.get_center()),
submobject_mode = "lagged_start", lag_ratio = 0.5,
remover = True remover = True
), ),
ChangingDecimal( ChangingDecimal(
@ -2672,7 +2672,7 @@ class GradientNudging(PreviewLearning):
edge.rotate_in_place(np.pi) edge.rotate_in_place(np.pi)
return MoveToTarget( return MoveToTarget(
edges, edges,
submobject_mode = "lagged_start", lag_ratio = 0.5,
lag_factor = 8, lag_factor = 8,
run_time = 1.5 run_time = 1.5
) )
@ -3176,7 +3176,7 @@ class InputRandomData(TestPerformance):
self.play(MoveToTarget( self.play(MoveToTarget(
image, image,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.activate_network(rand_vect, FadeOut(image)) self.activate_network(rand_vect, FadeOut(image))

View file

@ -321,7 +321,7 @@ class InterpretGradientComponents(GradientNudging):
Transform( Transform(
grad_terms, points, grad_terms, points,
remover = True, remover = True,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 1 run_time = 1
), ),
FadeOut(words), FadeOut(words),
@ -890,7 +890,7 @@ class WalkThroughTwoExample(ShowAveragingCost):
self.play( self.play(
mob.shift, MED_SMALL_BUFF*DOWN, mob.shift, MED_SMALL_BUFF*DOWN,
rate_func = there_and_back, rate_func = there_and_back,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 1.5 run_time = 1.5
) )
self.wait() self.wait()
@ -2708,7 +2708,7 @@ class SimplestNetworkExample(PreviewLearning):
self.play(ShowCreation( self.play(ShowCreation(
mob.number_line, mob.number_line,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.play( self.play(
ShowCreation(mob.arrow), ShowCreation(mob.arrow),

View file

@ -69,7 +69,7 @@ class SideGigToFullTime(Scene):
ApplyMethod( ApplyMethod(
dollar_signs.shift, dollar_signs.shift,
(FRAME_Y_RADIUS+1)*DOWN, (FRAME_Y_RADIUS+1)*DOWN,
submobject_mode = "lagged_start" lag_ratio = 0.5
), ),
morty.change_mode, "guilty", morty.change_mode, "guilty",
morty.look, DOWN+RIGHT morty.look, DOWN+RIGHT
@ -550,7 +550,7 @@ class MakeALotOfPiCreaturesHappy(Scene):
MoveToTarget( MoveToTarget(
pis, pis,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start", lag_ratio = 0.5,
lag_factor = 5, lag_factor = 5,
) )
) )

View file

@ -111,7 +111,7 @@ class IntroducePutnam(Scene):
self.wait() self.wait()
self.play(ReplacementTransform( self.play(ReplacementTransform(
out_of_tens.copy(), VGroup(out_of_120), out_of_tens.copy(), VGroup(out_of_120),
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 2, run_time = 2,
)) ))
self.wait() self.wait()
@ -218,7 +218,7 @@ class IntroduceTetrahedronSupplement(Scene):
self.wait(0.7) self.wait(0.7)
self.remove(num) self.remove(num)
self.add(title[0]) self.add(title[0])
self.play(FadeIn(title[1], submobject_mode = "lagged_start")) self.play(FadeIn(title[1], lag_ratio = 0.5))
self.wait(2) self.wait(2)
self.play(Write(question)) self.play(Write(question))
self.wait(2) self.wait(2)

View file

@ -2169,7 +2169,7 @@ class DrawRadialLines(PointsWeMiss):
self.play(ReplacementTransform( self.play(ReplacementTransform(
seed_dots, self.lines, seed_dots, self.lines,
run_time = 3, run_time = 3,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
self.play(OldLaggedStart( self.play(OldLaggedStart(
DrawBorderThenFill, new_dots, DrawBorderThenFill, new_dots,

View file

@ -2658,7 +2658,7 @@ class AmbiguityInLongEchos(IntroduceDopplerRadar, PiCreatureScene):
self.play(ReplacementTransform( self.play(ReplacementTransform(
VGroup(fourier_graph), shifted_graphs, VGroup(fourier_graph), shifted_graphs,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 2 run_time = 2
)) ))
self.wait() self.wait()
@ -3164,7 +3164,7 @@ class ShowMomentumFormula(IntroduceDeBroglie, TeacherStudentsScene):
self.wait() self.wait()
kwargs = { kwargs = {
"path_arc" : TAU/4, "path_arc" : TAU/4,
"submobject_mode" : "lagged_start", "lag_ratio" : 0.5,
"lag_ratio" : 0.7, "lag_ratio" : 0.7,
"run_time" : 1.5, "run_time" : 1.5,
} }
@ -3390,7 +3390,7 @@ class SortOfDopplerEffect(PiCreatureScene):
self.play( self.play(
Transform(time, space), Transform(time, space),
Transform(space, time), Transform(space, time),
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 1, run_time = 1,
) )
self.play(FadeOut(time), FadeOut(space)) self.play(FadeOut(time), FadeOut(space))
@ -4356,7 +4356,7 @@ class ThinkOfHeisenbergUncertainty(PiCreatureScene):
morty.change, "raise_left_hand", groups, morty.change, "raise_left_hand", groups,
FadeIn( FadeIn(
groups, groups,
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 3, run_time = 3,
) )
) )

View file

@ -1218,7 +1218,7 @@ class ShowVectorEquation(Scene):
FadeIn(moving_brace.mobject), FadeIn(moving_brace.mobject),
FadeIn(x_without_phi), FadeIn(x_without_phi),
FadeIn(moving_x_without_phi.mobject), FadeIn(moving_x_without_phi.mobject),
submobject_mode = "lagged_start", lag_ratio = 0.5,
run_time = 2, run_time = 2,
) )
self.wait(3) self.wait(3)

View file

@ -1555,7 +1555,7 @@ class ComplexFunctionsAsTransformations(ComplexTransformationScene):
self.play(FadeIn( self.play(FadeIn(
input_dots, input_dots,
run_time = 2, run_time = 2,
submobject_mode = "lagged_start" lag_ratio = 0.5
)) ))
for in_dot, out_dot, arrow in zip(input_dots, output_dots, arrows): for in_dot, out_dot, arrow in zip(input_dots, output_dots, arrows):
self.play( self.play(