mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
Get rid of lagged_start
This commit is contained in:
parent
cf92cd161e
commit
64eb670027
65 changed files with 291 additions and 291 deletions
|
@ -165,7 +165,7 @@ class IntroducePokerHand(PiCreatureScene, SampleSpaceScene):
|
|||
new_symbol.replace(heart, dim_to_match = 1)
|
||||
self.play(Transform(
|
||||
hearts, new_symbols,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.wait()
|
||||
self.play(FadeOut(heart_qs))
|
||||
|
|
|
@ -35,7 +35,7 @@ class Introduction(TeacherStudentsScene):
|
|||
self.play(
|
||||
FadeIn(
|
||||
series,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 2
|
||||
),
|
||||
Blink(self.get_teacher())
|
||||
|
|
|
@ -35,7 +35,7 @@ class Introduction(TeacherStudentsScene):
|
|||
self.play(
|
||||
FadeIn(
|
||||
series,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 2
|
||||
),
|
||||
Blink(self.get_teacher())
|
||||
|
|
|
@ -4,7 +4,7 @@ from active_projects.eop.reusable_imports import *
|
|||
class Chapter1OpeningQuote(OpeningQuote):
|
||||
CONFIG = {
|
||||
"fade_in_kwargs": {
|
||||
"submobject_mode": "lagged_start",
|
||||
"lag_ratio": 0.5,
|
||||
"rate_func": linear,
|
||||
"lag_factor": 9,
|
||||
"run_time": 10,
|
||||
|
|
|
@ -76,7 +76,7 @@ class QuizResult(PiCreatureScene):
|
|||
self.play(ReplacementTransform(
|
||||
VGroup(master_quiz), all_quizzes,
|
||||
run_time=2,
|
||||
submobject_mode="lagged_start"
|
||||
lag_ratio=0.5
|
||||
))
|
||||
self.wait(2)
|
||||
|
||||
|
|
|
@ -222,7 +222,7 @@ class InitialFiveChooseThreeExample(Scene):
|
|||
self.play(FadeIn(
|
||||
stack,
|
||||
run_time = 0.2*len(stack),
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.wait()
|
||||
|
||||
|
@ -650,7 +650,7 @@ class SixChooseThreeInOtherContext(Scene):
|
|||
# eq.next_to(stack, UP)
|
||||
|
||||
# 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
|
||||
# )
|
||||
# new_words.move_to(n_choose_k_words, LEFT)
|
||||
|
@ -785,7 +785,7 @@ class SixChooseThreeInOtherContext(Scene):
|
|||
# def add_n_choose_k_term(self):
|
||||
# term = TexMobject("{5 \\choose 3} = 10")
|
||||
# term.to_edge(UP)
|
||||
# self.play(FadeIn(term, submobject_mode = "lagged_start"))
|
||||
# self.play(FadeIn(term, lag_ratio = 0.5))
|
||||
# self.wait()
|
||||
|
||||
# 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)
|
||||
|
||||
self.play(*[
|
||||
MoveToTarget(mob, submobject_mode = "lagged_start")
|
||||
MoveToTarget(mob, lag_ratio = 0.5)
|
||||
for mob in (bars_copy, numbers, numbers_copy)
|
||||
])
|
||||
self.remove(numbers, numbers_copy)
|
||||
|
@ -3064,7 +3064,7 @@ class NineChooseFourExample(HowToComputeNChooseK):
|
|||
self.play(FadeIn(line, run_time = 0.1))
|
||||
self.wait(2)
|
||||
self.play(FadeOut(
|
||||
stack, submobject_mode = "lagged_start", run_time = 2
|
||||
stack, lag_ratio = 0.5, run_time = 2
|
||||
))
|
||||
|
||||
def choose_k_people(self):
|
||||
|
@ -3400,7 +3400,7 @@ class SumsToPowerOf2(Scene):
|
|||
self.play(
|
||||
Transform(n_choose_k_terms, fractions),
|
||||
MoveToTarget(plusses),
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 2
|
||||
)
|
||||
self.wait()
|
||||
|
|
|
@ -880,7 +880,7 @@ class ThousandPossibleQuizzes(Scene):
|
|||
target_quizzes = VGroup(*quizzes[:len(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(
|
||||
Transform(full_quizzes, target_quizzes),
|
||||
FadeIn(title)
|
||||
|
@ -1022,7 +1022,7 @@ class ThousandPossibleQuizzes(Scene):
|
|||
self.play(
|
||||
MoveToTarget(
|
||||
movers,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
lag_factor = 4,
|
||||
run_time = 3,
|
||||
),
|
||||
|
@ -1079,7 +1079,7 @@ class ThousandPossibleQuizzes(Scene):
|
|||
self.play(
|
||||
MoveToTarget(
|
||||
movers,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 3,
|
||||
),
|
||||
Transform(equation, alt_equation)
|
||||
|
@ -1763,7 +1763,7 @@ class ShowFullDistribution(Scene):
|
|||
self.play(
|
||||
ReplacementTransform(
|
||||
value_mobs, chart.bars,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 2
|
||||
)
|
||||
)
|
||||
|
@ -2377,7 +2377,7 @@ class NameBinomial(Scene):
|
|||
for m1, m2 in (self.crosses, boys), (self.checkmarks, girls):
|
||||
self.play(ReplacementTransform(
|
||||
m1, m2,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 3
|
||||
))
|
||||
self.wait()
|
||||
|
@ -2676,7 +2676,7 @@ class ProbabilityOfAGivenBoyGirlPattern(CycleThroughPatterns):
|
|||
self.play(ReplacementTransform(
|
||||
factored, factored_in_nums,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.wait(2)
|
||||
for group, tex in (gp_nums, "0.49"), (bp_nums, "0.51"):
|
||||
|
@ -3188,13 +3188,13 @@ class AssumeOrderDoesntMatter(Scene):
|
|||
self.play(FadeIn(
|
||||
prob_groups[1],
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.wait(2)
|
||||
self.play(FadeIn(
|
||||
VGroup(prob_groups[0], *prob_groups[2:]),
|
||||
run_time = 3,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.wait()
|
||||
|
||||
|
@ -3311,7 +3311,7 @@ class SkepticalOfDistributions(TeacherStudentsScene):
|
|||
|
||||
self.play(
|
||||
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"
|
||||
)
|
||||
for values in binomial.values_list:
|
||||
|
@ -3340,14 +3340,14 @@ class SkepticalOfDistributions(TeacherStudentsScene):
|
|||
|
||||
|
||||
self.play(
|
||||
FadeIn(poisson, submobject_mode = "lagged_start"),
|
||||
FadeIn(poisson, lag_ratio = 0.5),
|
||||
RemovePiCreatureBubble(self.students[0]),
|
||||
self.teacher.change, "raise_right_hand",
|
||||
self.binomial.scale, 0.5,
|
||||
self.binomial.to_corner, UP+LEFT,
|
||||
)
|
||||
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.wait(2)
|
||||
self.change_student_modes(
|
||||
|
@ -3381,7 +3381,7 @@ class SkepticalOfDistributions(TeacherStudentsScene):
|
|||
self.play(
|
||||
ShowCreation(
|
||||
arrows,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 2
|
||||
),
|
||||
*[
|
||||
|
|
|
@ -90,7 +90,7 @@ class DrawBorderThenFill(Animation):
|
|||
class Write(DrawBorderThenFill):
|
||||
CONFIG = {
|
||||
"rate_func": linear,
|
||||
"submobject_mode": "lagged_start",
|
||||
"lag_ratio": 0.5,
|
||||
}
|
||||
|
||||
def __init__(self, mob_or_text, **kwargs):
|
||||
|
|
|
@ -33,7 +33,7 @@ class OpeningQuote(Scene):
|
|||
"highlighted_quote_terms": {},
|
||||
"author": "",
|
||||
"fade_in_kwargs": {
|
||||
"submobject_mode": "lagged_start",
|
||||
"lag_ratio": 0.5,
|
||||
"rate_func": linear,
|
||||
"lag_factor": 4,
|
||||
"run_time": 5,
|
||||
|
|
|
@ -332,10 +332,10 @@ class TeacherStudentsScene(PiCreatureScene):
|
|||
if "look_at_arg" in kwargs:
|
||||
for pi in target:
|
||||
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(
|
||||
start, target,
|
||||
submobject_mode=submobject_mode,
|
||||
lag_ratio=lag_ratio,
|
||||
run_time=2
|
||||
)
|
||||
|
||||
|
|
|
@ -150,7 +150,7 @@ class CountingScene(Scene):
|
|||
result.append(ShowCreation(arrow))
|
||||
result.append(Transform(
|
||||
self.number_mob, new_number_mob,
|
||||
submobject_mode="lagged_start"
|
||||
lag_ratio=0.5
|
||||
))
|
||||
return result
|
||||
|
||||
|
|
|
@ -302,7 +302,7 @@ class GraphScene(Scene):
|
|||
def transform_between_riemann_rects(self, curr_rects, new_rects, **kwargs):
|
||||
transform_kwargs = {
|
||||
"run_time": 2,
|
||||
"submobject_mode": "lagged_start"
|
||||
"lag_ratio": 0.5
|
||||
}
|
||||
added_anims = kwargs.get("added_anims", [])
|
||||
transform_kwargs.update(kwargs)
|
||||
|
|
|
@ -124,7 +124,7 @@ class BreakUp2To256(PiCreatureScene):
|
|||
Transform(
|
||||
self.subexpressions, new_subexpressions,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
),
|
||||
FadeOut(self.pi_creature)
|
||||
)
|
||||
|
@ -495,7 +495,7 @@ class MainBreakdown(Scene):
|
|||
ReplacementTransform(
|
||||
self.group_of_four_billion_things, VGroup(num),
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
),
|
||||
ShowCreation(h_line),
|
||||
ReplacementTransform(
|
||||
|
|
|
@ -124,7 +124,7 @@ class IntroSceneWrapper(PiCreatureScene):
|
|||
self.play(Transform(
|
||||
solver, rainbow_solver,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.play(solver.restore)
|
||||
self.wait()
|
||||
|
|
|
@ -2256,7 +2256,7 @@ class GraphOnePlusOneOverX(GraphScene):
|
|||
line.fade(0.5)
|
||||
line_anim = ShowCreationThenDestruction(
|
||||
line_copy,
|
||||
submobject_mode="lagged_start",
|
||||
lag_ratio=0.5,
|
||||
run_time=2
|
||||
)
|
||||
line.continual_anim = CycleAnimation(line_anim)
|
||||
|
|
|
@ -686,13 +686,13 @@ class MathematicalWebOfConnections(PiCreatureScene):
|
|||
randy.change, "raise_right_hand",
|
||||
FadeOut(jerk.bubble),
|
||||
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:]:
|
||||
self.play(
|
||||
FadeIn(
|
||||
formula,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 3
|
||||
),
|
||||
)
|
||||
|
|
|
@ -510,7 +510,7 @@ class BasicsOfPolarization(DirectionOfPolarizationScene):
|
|||
self.play(FadeIn(
|
||||
quantum_words,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
anim_sets = [
|
||||
[passing_photon],
|
||||
|
@ -526,7 +526,7 @@ class BasicsOfPolarization(DirectionOfPolarizationScene):
|
|||
for index in 0, 1:
|
||||
self.play(*anim_sets[index])
|
||||
self.play(
|
||||
# FadeIn(prob_eq, submobject_mode = "lagged_start"),
|
||||
# FadeIn(prob_eq, lag_ratio = 0.5),
|
||||
passing_photon
|
||||
)
|
||||
for index in 1, 0, 0, 1:
|
||||
|
@ -1477,7 +1477,7 @@ class VennDiagramProofByContradiction(Scene):
|
|||
Write(hundred), Write(s),
|
||||
ReplacementTransform(
|
||||
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(B0))
|
||||
self.play(
|
||||
FadeIn(words, submobject_mode = "lagged_start"),
|
||||
FadeIn(words, lag_ratio = 0.5),
|
||||
ShowCreation(arrow)
|
||||
)
|
||||
self.wait()
|
||||
|
@ -2124,7 +2124,7 @@ class ReEmphasizeVennDiagram(VennDiagramProofByContradiction):
|
|||
self.in_A_out_B_words.fade, 1,
|
||||
self.in_A_out_B_arrow.fade, 1,
|
||||
FadeIn(B1),
|
||||
FadeIn(words, submobject_mode = "lagged_start"),
|
||||
FadeIn(words, lag_ratio = 0.5),
|
||||
ShowCreation(arrow)
|
||||
)
|
||||
self.play(FadeIn(C0))
|
||||
|
|
|
@ -185,7 +185,7 @@ class IntroduceStolenNecklaceProblem(ThreeDScene):
|
|||
self.play(
|
||||
FadeIn(
|
||||
necklace,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 3
|
||||
),
|
||||
*it.chain(*[
|
||||
|
@ -992,7 +992,7 @@ class MentionGenerality(TeacherStudentsScene, ThreeDScene):
|
|||
self.teacher.look_at, arrow
|
||||
)
|
||||
self.play(
|
||||
FadeIn(necklace, run_time = 2, submobject_mode = "lagged_start"),
|
||||
FadeIn(necklace, run_time = 2, lag_ratio = 0.5),
|
||||
Write(arrow),
|
||||
*[
|
||||
ApplyMethod(pi.look_at, arrow)
|
||||
|
@ -1276,7 +1276,7 @@ class MakeTwoJewelCaseContinuous(IntroduceStolenNecklaceProblem):
|
|||
)
|
||||
self.play(FadeIn(
|
||||
self.necklace,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.shuffle_jewels(self.necklace.jewels)
|
||||
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(ReplacementTransform(
|
||||
jewels, segments,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 2
|
||||
))
|
||||
self.wait()
|
||||
|
@ -1964,7 +1964,7 @@ class ChoicesForSpherePoint(GeneralizeBorsukUlam):
|
|||
self.play(FadeIn(
|
||||
choices,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.wait()
|
||||
|
||||
|
@ -1997,7 +1997,7 @@ class ChoicesForSpherePoint(GeneralizeBorsukUlam):
|
|||
])
|
||||
|
||||
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.wait()
|
||||
|
||||
|
|
|
@ -1275,7 +1275,7 @@ class CompareToGalacticMass(Scene):
|
|||
),
|
||||
ReplacementTransform(
|
||||
dots, commas,
|
||||
submobject_mode="lagged_start",
|
||||
lag_ratio=0.5,
|
||||
run_time=2
|
||||
)
|
||||
)
|
||||
|
|
|
@ -1471,7 +1471,7 @@ class AnalyzeCircleGeometry(CircleDiagramFromSlidingBlocks, MovingCameraScene):
|
|||
arc.fade(1)
|
||||
arc.set_stroke(width=20)
|
||||
self.play(Restore(
|
||||
all_arcs, submobject_mode="lagged_start",
|
||||
all_arcs, lag_ratio=0.5,
|
||||
run_time=2,
|
||||
))
|
||||
self.wait()
|
||||
|
@ -1625,7 +1625,7 @@ class AnalyzeCircleGeometry(CircleDiagramFromSlidingBlocks, MovingCameraScene):
|
|||
self.play(
|
||||
Restore(
|
||||
lines,
|
||||
submobject_mode="lagged_start",
|
||||
lag_ratio=0.5,
|
||||
run_time=2
|
||||
),
|
||||
FadeOut(self.center_lines_group),
|
||||
|
|
|
@ -1293,7 +1293,7 @@ class TryGuessingDigitalSignature(Scene):
|
|||
GrowFromCenter(brace),
|
||||
FadeIn(
|
||||
zeros,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 3
|
||||
)
|
||||
)
|
||||
|
@ -1497,7 +1497,7 @@ class IncludeTransactionNumber(LedgerScene):
|
|||
self.play(FadeOut(old_signatures))
|
||||
self.play(ReplacementTransform(
|
||||
lines.copy(), new_signatures,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 2,
|
||||
))
|
||||
self.play(self.bob.change, "erm")
|
||||
|
@ -2558,7 +2558,7 @@ class IntroduceSHA256(Scene):
|
|||
self.play(Transform(
|
||||
digest, new_digest,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
path_arc = np.pi/2
|
||||
))
|
||||
if arrow in self.get_mobjects():
|
||||
|
@ -2610,7 +2610,7 @@ class IntroduceSHA256(Scene):
|
|||
Transform(
|
||||
self.digest, new_digest,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
path_arc = np.pi/2
|
||||
),
|
||||
Transform(self.digest_text, desired_output_text)
|
||||
|
@ -2655,7 +2655,7 @@ class IntroduceSHA256(Scene):
|
|||
self.play(Transform(
|
||||
group[1], new_group[1],
|
||||
run_time = 1,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
|
||||
class PonderScematic(Scene):
|
||||
|
@ -2821,13 +2821,13 @@ class IntroduceNonceOnTrasactions(LedgerScene):
|
|||
self.play(Transform(
|
||||
self.digest, digest,
|
||||
run_time = 1,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.wait()
|
||||
self.play(self.nonce.restore)
|
||||
self.play(
|
||||
self.digest.restore,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 2
|
||||
)
|
||||
self.play(FadeOut(q_mark))
|
||||
|
@ -2868,7 +2868,7 @@ class IntroduceNonceOnTrasactions(LedgerScene):
|
|||
)
|
||||
self.play(Transform(
|
||||
self.digest, new_digest,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
))
|
||||
|
||||
class ShowSomeBroadcasting(DistributedLedgerScene):
|
||||
|
@ -3035,7 +3035,7 @@ class IntroduceBlockChain(Scene):
|
|||
|
||||
self.play(Transform(
|
||||
proofs_of_work, new_proofs_of_work,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.play(
|
||||
ShowCreation(arrows),
|
||||
|
@ -4618,7 +4618,7 @@ class VariableProofOfWork(WhenToTrustANewBlock):
|
|||
Transform(n_zeros_mob, new_n_zeros_mob),
|
||||
Transform(
|
||||
digest, new_digest,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
),
|
||||
Transform(proof_of_work, new_pow),
|
||||
)
|
||||
|
|
|
@ -1421,7 +1421,7 @@ class CreativeConstruction(PiCreatureScene):
|
|||
lightbulb,
|
||||
run_time=3,
|
||||
rate_func=there_and_back,
|
||||
submobject_mode="lagged_start"
|
||||
lag_ratio=0.5
|
||||
))
|
||||
self.play(Blink(randy))
|
||||
self.wait()
|
||||
|
@ -1680,7 +1680,7 @@ class ReactionToGlimpseOfGenius(TeacherStudentsScene, CreativeConstruction):
|
|||
lightbulb, q_marks,
|
||||
run_time=3,
|
||||
rate_func=there_and_back_with_pause,
|
||||
submobject_mode="lagged_start"
|
||||
lag_ratio=0.5
|
||||
))
|
||||
self.play(
|
||||
ClockPassesTime(clock, hours_passed=4, run_tim=4),
|
||||
|
|
|
@ -126,7 +126,7 @@ class Anniversary(TeacherStudentsScene):
|
|||
self.play(
|
||||
DrawBorderThenFill(
|
||||
hats,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
rate_func=linear,
|
||||
run_time = 2,
|
||||
),
|
||||
|
@ -2365,7 +2365,7 @@ class ExponentsAsRepeatedMultiplication(TeacherStudentsScene):
|
|||
self.play(FadeIn(
|
||||
five_twos,
|
||||
run_time = 3,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.wait(2)
|
||||
|
||||
|
@ -3288,7 +3288,7 @@ class ECLPromo(PiCreatureScene):
|
|||
self.wait(3)
|
||||
self.play(FadeIn(
|
||||
logo_part1, run_time = 3,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
logo_part2.save_state()
|
||||
logo_part2.scale(2)
|
||||
|
|
|
@ -235,7 +235,7 @@ class Introduction(TeacherStudentsScene):
|
|||
self.play(
|
||||
FadeIn(
|
||||
series,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 2
|
||||
),
|
||||
Blink(self.get_teacher())
|
||||
|
@ -577,7 +577,7 @@ class IntroduceCircle(CircleScene):
|
|||
unwrapped_rings.move_to(self.unwrapped_tip, UP)
|
||||
ring_anim_kwargs = {
|
||||
"run_time" : 3,
|
||||
"submobject_mode" : "lagged_start"
|
||||
"lag_ratio" : 0.5
|
||||
}
|
||||
|
||||
self.play(
|
||||
|
@ -696,7 +696,7 @@ class ApproximateOneRing(CircleScene, ReconfigurableScene):
|
|||
ShowCreation(
|
||||
lines,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
),
|
||||
Animation(self.radius_group),
|
||||
self.pi_creature.change_mode, "maybe"
|
||||
|
@ -718,7 +718,7 @@ class ApproximateOneRing(CircleScene, ReconfigurableScene):
|
|||
self.play(
|
||||
FadeIn(
|
||||
rings,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 3
|
||||
),
|
||||
Animation(self.radius_group),
|
||||
|
@ -911,7 +911,7 @@ class ApproximateOneRing(CircleScene, ReconfigurableScene):
|
|||
Animation(alt_side_brace),
|
||||
Animation(alt_dr_label),
|
||||
run_time = 3,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
)
|
||||
self.wait(2)
|
||||
|
||||
|
@ -1071,7 +1071,7 @@ class GraphRectangles(CircleScene, GraphScene):
|
|||
self.wait()
|
||||
self.play(
|
||||
Transform(moving_arrow, arrows[-1]),
|
||||
ShowCreation(r_ticks, submobject_mode = "lagged_start"),
|
||||
ShowCreation(r_ticks, lag_ratio = 0.5),
|
||||
run_time = 2
|
||||
)
|
||||
self.play(Indicate(self.rings[-1]))
|
||||
|
@ -1234,7 +1234,7 @@ class GraphRectangles(CircleScene, GraphScene):
|
|||
lambda t : 0.1*there_and_back(t),
|
||||
alpha, alpha+0.5
|
||||
),
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
)
|
||||
for rect, flat_rect, alpha in zip(
|
||||
self.rects, self.flat_rects,
|
||||
|
@ -1285,7 +1285,7 @@ class GraphRectangles(CircleScene, GraphScene):
|
|||
self.play(
|
||||
Transform(
|
||||
self.rects, new_rects,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 2
|
||||
),
|
||||
Animation(self.axes),
|
||||
|
@ -1296,7 +1296,7 @@ class GraphRectangles(CircleScene, GraphScene):
|
|||
self.rects,
|
||||
direction = RIGHT,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
))
|
||||
self.wait()
|
||||
|
||||
|
@ -1382,7 +1382,7 @@ class GraphRectangles(CircleScene, GraphScene):
|
|||
Transform(
|
||||
rings, unwrapped,
|
||||
run_time = 5,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
),
|
||||
Animation(self.radius_group)
|
||||
)
|
||||
|
@ -1525,7 +1525,7 @@ class RecapCircleSolution(GraphRectangles, ReconfigurableScene):
|
|||
self.add(rings, self.radius_group)
|
||||
self.play(FadeIn(
|
||||
integral_condition,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.wait()
|
||||
self.play(*draw_ring_sum_anims)
|
||||
|
@ -1665,7 +1665,7 @@ class RecapCircleSolution(GraphRectangles, ReconfigurableScene):
|
|||
ReplacementTransform(
|
||||
self.rings.copy(), rects,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
),
|
||||
Animation(self.x_axis),
|
||||
)
|
||||
|
@ -1695,7 +1695,7 @@ class RecapCircleSolution(GraphRectangles, ReconfigurableScene):
|
|||
self.play(
|
||||
Transform(
|
||||
self.rects, new_rects,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 2
|
||||
),
|
||||
Animation(self.axes),
|
||||
|
@ -1849,7 +1849,7 @@ class ExampleIntegralProblems(PiCreatureScene, GraphScene):
|
|||
FadeIn(
|
||||
pre_rects,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
),
|
||||
Animation(self.ticks)
|
||||
)
|
||||
|
@ -1857,7 +1857,7 @@ class ExampleIntegralProblems(PiCreatureScene, GraphScene):
|
|||
ReplacementTransform(
|
||||
pre_rects, rects,
|
||||
run_time = 3,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
),
|
||||
Animation(self.ticks),
|
||||
Write(self.axes, run_time = 1)
|
||||
|
@ -1901,7 +1901,7 @@ class ExampleIntegralProblems(PiCreatureScene, GraphScene):
|
|||
Transform(
|
||||
self.rects, thinner_rects,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
)
|
||||
)
|
||||
self.wait()
|
||||
|
@ -2004,7 +2004,7 @@ class AreaUnderParabola(GraphScene):
|
|||
rects,
|
||||
run_time = 2,
|
||||
rate_func = smooth,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
),
|
||||
*list(map(Animation, foreground_mobjects))
|
||||
)
|
||||
|
@ -2013,7 +2013,7 @@ class AreaUnderParabola(GraphScene):
|
|||
self.play(
|
||||
Transform(
|
||||
rects, new_rects,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
),
|
||||
*list(map(Animation, foreground_mobjects))
|
||||
)
|
||||
|
@ -2731,7 +2731,7 @@ class EndScreen(PiCreatureScene):
|
|||
FadeIn(
|
||||
words,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
),
|
||||
self.pi_creature.change_mode, "hooray"
|
||||
)
|
||||
|
|
|
@ -301,7 +301,7 @@ class Pendulum(ReconfigurableScene):
|
|||
FadeIn(
|
||||
cosine_approx,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
),
|
||||
MoveToTarget(cosine),
|
||||
morty.change, "pondering", cosine_approx
|
||||
|
@ -619,7 +619,7 @@ class ConstructQuadraticApproximation(ExampleApproximationWithCos):
|
|||
self.play(FadeIn(
|
||||
quadratic_tex,
|
||||
run_time = 3,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.play(
|
||||
FadeIn(free_to_change),
|
||||
|
@ -708,7 +708,7 @@ class ConstructQuadraticApproximation(ExampleApproximationWithCos):
|
|||
self.play(Transform(
|
||||
poly_group, poly_group_target,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.wait(2)
|
||||
self.play(*list(map(FadeOut, [poly_at_zero, equals_c0])))
|
||||
|
@ -762,7 +762,7 @@ class ConstructQuadraticApproximation(ExampleApproximationWithCos):
|
|||
self.play(FadeIn(
|
||||
VGroup(derivative, *rhs[:2]),
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.wait(2)
|
||||
self.play(Write(VGroup(*rhs[2:])), run_time = 2)
|
||||
|
@ -806,13 +806,13 @@ class ConstructQuadraticApproximation(ExampleApproximationWithCos):
|
|||
self.play(FadeIn(
|
||||
derivative,
|
||||
run_time = 3,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.wait()
|
||||
self.play(Transform(
|
||||
derivative, derivative_at_zero,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.wait(2)
|
||||
self.play(Write(equals_c1))
|
||||
|
@ -820,7 +820,7 @@ class ConstructQuadraticApproximation(ExampleApproximationWithCos):
|
|||
self.play(Transform(
|
||||
poly_group, poly_group_target,
|
||||
run_time = 3,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.wait(2)
|
||||
|
||||
|
@ -865,7 +865,7 @@ class ConstructQuadraticApproximation(ExampleApproximationWithCos):
|
|||
self.play(FadeIn(
|
||||
VGroup(second_deriv, *rhs[1][:2]),
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.wait(3)
|
||||
self.play(Write(VGroup(*rhs[1][2:]), run_time = 2))
|
||||
|
@ -947,7 +947,7 @@ class ConstructQuadraticApproximation(ExampleApproximationWithCos):
|
|||
self.play(Transform(
|
||||
poly_group, poly_group_target,
|
||||
run_time = 3,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.wait(3)
|
||||
|
||||
|
@ -1444,7 +1444,7 @@ class CubicAndQuarticApproximations(ConstructQuadraticApproximation):
|
|||
self.play(Transform(
|
||||
c3s, zeros,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.wait(2)
|
||||
|
||||
|
@ -1547,7 +1547,7 @@ class CubicAndQuarticApproximations(ConstructQuadraticApproximation):
|
|||
Transform(
|
||||
c4s, fractions,
|
||||
run_time = 3,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
),
|
||||
MoveToTarget(x_to_4, run_time = 2)
|
||||
)
|
||||
|
@ -1962,7 +1962,7 @@ class ApproximateNearNewPoint(CubicAndQuarticApproximations):
|
|||
self.play(FadeIn(
|
||||
poly_around_pi,
|
||||
run_time = 4,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.wait(2)
|
||||
self.play(FadeIn(randy))
|
||||
|
@ -2303,7 +2303,7 @@ class TranslationOfInformation(CubicAndQuarticApproximations):
|
|||
self.play(ReplacementTransform(
|
||||
zeros.copy(), self.dot,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.play(ShowCreation(self.v_line))
|
||||
self.wait()
|
||||
|
@ -2326,7 +2326,7 @@ class TranslationOfInformation(CubicAndQuarticApproximations):
|
|||
ReplacementTransform(
|
||||
self.polynomial, new_polynomial,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
),
|
||||
FadeOut(polynomial_fourth_term),
|
||||
FadeOut(self.taylor_name_group),
|
||||
|
@ -2944,7 +2944,7 @@ class SecondTermIntuition(AreaIsDerivative):
|
|||
self.play(FadeIn(
|
||||
geometric_taylor,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.wait()
|
||||
self.play(
|
||||
|
@ -3388,7 +3388,7 @@ class RadiusOfConvergenceForLnX(ExpGraphConvergence):
|
|||
self.play(FadeIn(
|
||||
series,
|
||||
run_time = 3,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.wait()
|
||||
self.series = series
|
||||
|
|
|
@ -744,7 +744,7 @@ class CompareTwoTimes(Scene):
|
|||
group.to_corner(UP+RIGHT)
|
||||
|
||||
self.play(FadeIn(
|
||||
group, submobject_mode = "lagged_start",
|
||||
group, lag_ratio = 0.5,
|
||||
run_time = 3
|
||||
))
|
||||
self.wait(3)
|
||||
|
@ -1127,7 +1127,7 @@ class DsOverDtGraphically(GraphCarTrajectory, ZoomedScene):
|
|||
self.wait()
|
||||
for anim_class in FadeIn, FadeOut:
|
||||
self.play(anim_class(
|
||||
t_tick_marks, submobject_mode = "lagged_start",
|
||||
t_tick_marks, lag_ratio = 0.5,
|
||||
run_time = 2
|
||||
))
|
||||
self.play(
|
||||
|
@ -1970,7 +1970,7 @@ class YouWouldntDoThisEveryTime(TeacherStudentsScene):
|
|||
next_video = series[2]
|
||||
this_video.save_state()
|
||||
this_video.set_color(YELLOW)
|
||||
self.play(FadeIn(series, submobject_mode = "lagged_start"))
|
||||
self.play(FadeIn(series, lag_ratio = 0.5))
|
||||
self.play(
|
||||
this_video.restore,
|
||||
next_video.set_color, YELLOW,
|
||||
|
|
|
@ -161,7 +161,7 @@ class ContrastAbstractAndConcrete(Scene):
|
|||
anims.append(Transform(
|
||||
VGroup(*[pi.parents 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,
|
||||
))
|
||||
exp += 1
|
||||
|
@ -1353,7 +1353,7 @@ class PatternForPowerRule(PiCreatureScene):
|
|||
replace_mobject_with_target_in_scene = True
|
||||
),
|
||||
ShowCreation(lines),
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 2,
|
||||
)
|
||||
self.wait()
|
||||
|
@ -2705,7 +2705,7 @@ class NextVideo(TeacherStudentsScene):
|
|||
self.play(
|
||||
FadeIn(
|
||||
series,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 3,
|
||||
),
|
||||
*[
|
||||
|
|
|
@ -90,7 +90,7 @@ class TransitionFromLastVideo(TeacherStudentsScene):
|
|||
self.play(
|
||||
interior.set_color, YELLOW,
|
||||
*added_anims,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
)
|
||||
self.wait()
|
||||
self.wait()
|
||||
|
@ -165,7 +165,7 @@ class TransitionFromLastVideo(TeacherStudentsScene):
|
|||
modes = 3*["erm"] + 3*["pleading"]
|
||||
for part, mode in zip(parts, modes):
|
||||
self.play(
|
||||
FadeIn(part, submobject_mode = "lagged_start"),
|
||||
FadeIn(part, lag_ratio = 0.5),
|
||||
self.get_teacher().change_mode, "raise_right_hand",
|
||||
*[
|
||||
ApplyMethod(pi.change_mode, mode)
|
||||
|
@ -1727,7 +1727,7 @@ class ThreeLinesChainRule(ReconfigurableScene):
|
|||
self.wait()
|
||||
self.play(
|
||||
all_x_squared_relevant_labels.restore,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
lag_factor = 3,
|
||||
run_time = 3,
|
||||
)
|
||||
|
|
|
@ -114,7 +114,7 @@ class DoublingPopulation(PiCreatureScene):
|
|||
FadeIn(
|
||||
t_expression,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
)
|
||||
)
|
||||
self.play(Transform(f_x, P_t))
|
||||
|
@ -496,7 +496,7 @@ class GraphOfTwoToT(GraphScene):
|
|||
FadeIn(
|
||||
slope_label,
|
||||
run_time = 4,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
),
|
||||
ReplacementTransform(
|
||||
height_label.copy(),
|
||||
|
@ -1387,7 +1387,7 @@ class WhyNaturalLogOf2ShowsUp(TeacherStudentsScene):
|
|||
FadeIn(
|
||||
exp_c,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
),
|
||||
self.teacher.change, "raise_right_hand"
|
||||
)
|
||||
|
@ -1457,7 +1457,7 @@ class WhyNaturalLogOf2ShowsUp(TeacherStudentsScene):
|
|||
ApplyMethod(
|
||||
t_group.restore,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
),
|
||||
self.teacher.change_mode, "speaking"
|
||||
)
|
||||
|
@ -1614,7 +1614,7 @@ class ManyExponentialForms(TeacherStudentsScene):
|
|||
self.play(FadeIn(
|
||||
rhs,
|
||||
run_time = 2,
|
||||
submobject_mode = 'lagged_start'
|
||||
lag_ratio = 0.5,
|
||||
))
|
||||
self.wait(2)
|
||||
self.wait()
|
||||
|
@ -1790,13 +1790,13 @@ class NaturalLog(Scene):
|
|||
self.play(FadeIn(
|
||||
expressions,
|
||||
run_time = 3,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.wait()
|
||||
self.play(
|
||||
expressions.set_fill, None, 1,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
)
|
||||
self.wait()
|
||||
for i in 0, 2, 1:
|
||||
|
|
|
@ -2595,7 +2595,7 @@ class FinalWords(TeacherStudentsScene):
|
|||
self.teacher.change_mode, "plain",
|
||||
FadeIn(
|
||||
series, run_time = 2,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
),
|
||||
)
|
||||
self.play(
|
||||
|
|
|
@ -103,7 +103,7 @@ class LimitJustMeansApproach(PiCreatureScene):
|
|||
self.play(
|
||||
Transform(
|
||||
expression, next_expression,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
lag_factor = 1.2,
|
||||
),
|
||||
self.pi_creature.look_at, next_expression[-1]
|
||||
|
@ -318,7 +318,7 @@ class RefreshOnDerivativeDefinition(GraphScene):
|
|||
self.play(
|
||||
lim.scale_in_place, sf,
|
||||
lim.set_color, color,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
)
|
||||
self.wait(2)
|
||||
self.animate_secant_slope_group_change(
|
||||
|
@ -663,7 +663,7 @@ class OtherViewsOfDx(TeacherStudentsScene):
|
|||
self.play(ReplacementTransform(
|
||||
statements[0].h.copy(), h_group,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
lag_factor = 1.5,
|
||||
))
|
||||
self.wait()
|
||||
|
@ -823,7 +823,7 @@ class GraphLimitExpression(GraphScene):
|
|||
for i, j, func in zip(indices, indices[1:], funcs):
|
||||
anims = [FadeIn(
|
||||
VGroup(*expression[i:j]),
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
lag_factor = 1.5
|
||||
)]
|
||||
new_graph = self.get_graph(func, color = BLUE)
|
||||
|
@ -837,7 +837,7 @@ class GraphLimitExpression(GraphScene):
|
|||
self.wait()
|
||||
self.play(
|
||||
MoveToTarget(expression),
|
||||
FadeIn(limit, submobject_mode = "lagged_start"),
|
||||
FadeIn(limit, lag_ratio = 0.5),
|
||||
GrowFromCenter(brace)
|
||||
)
|
||||
self.play(Write(derivative))
|
||||
|
@ -2438,9 +2438,9 @@ class DerivativeLimitReciprocity(Scene):
|
|||
deriv.set_color_by_tex("df", YELLOW)
|
||||
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(FadeIn(deriv, submobject_mode = "lagged_start"))
|
||||
self.play(FadeIn(deriv, lag_ratio = 0.5))
|
||||
self.wait()
|
||||
self.play(Rotate(arrow, np.pi, run_time = 2))
|
||||
self.wait()
|
||||
|
|
|
@ -96,7 +96,7 @@ class ThisVideo(TeacherStudentsScene):
|
|||
formula.set_color_by_tex("v", VELOCITY_COLOR)
|
||||
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(
|
||||
this_video.shift, this_video.get_height()*DOWN/2,
|
||||
this_video.set_color, YELLOW,
|
||||
|
@ -256,7 +256,7 @@ class PlotVelocity(GraphScene):
|
|||
|
||||
self.play(DrawBorderThenFill(
|
||||
speedometer,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
rate_func=linear,
|
||||
))
|
||||
|
||||
|
@ -522,7 +522,7 @@ class AreaUnderVGraph(PlotVelocity):
|
|||
self.play(Transform(
|
||||
rects, new_rects,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.wait()
|
||||
|
||||
|
@ -692,7 +692,7 @@ class ConstantVelocityPlot(PlotVelocity):
|
|||
self.play(
|
||||
FadeClass(
|
||||
units_of_area,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 3
|
||||
),
|
||||
Animation(self.s_label),
|
||||
|
@ -860,7 +860,7 @@ class PiecewiseConstantPlot(PlotVelocity):
|
|||
ReplacementTransform(
|
||||
flat_rects, rects,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
),
|
||||
Animation(right_brace)
|
||||
)
|
||||
|
@ -904,7 +904,7 @@ class PiecewiseConstantPlot(PlotVelocity):
|
|||
self.play(ReplacementTransform(
|
||||
rects, target_rects,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
rects.restore()
|
||||
self.wait()
|
||||
|
@ -921,7 +921,7 @@ class PiecewiseConstantPlot(PlotVelocity):
|
|||
FadeIn(
|
||||
example_text,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
),
|
||||
ReplacementTransform(
|
||||
dt_label.copy(),
|
||||
|
@ -1200,12 +1200,12 @@ class PiecewiseConstantPlot(PlotVelocity):
|
|||
ReplacementTransform(
|
||||
rects, next_rects,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
),
|
||||
Transform(
|
||||
self.ticks, self.get_ticks(next_rects),
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
),
|
||||
)
|
||||
self.rects = rects = next_rects
|
||||
|
@ -1276,7 +1276,7 @@ class PiecewiseConstantPlot(PlotVelocity):
|
|||
Transform(
|
||||
rects, new_rects,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
),
|
||||
morty.look_at, rects,
|
||||
)
|
||||
|
@ -1461,7 +1461,7 @@ class AreaUnderACurve(GraphScene):
|
|||
self.play(Transform(
|
||||
rects, new_rects,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.wait()
|
||||
|
||||
|
@ -1782,7 +1782,7 @@ class DirectInterpretationOfDsDt(TeacherStudentsScene):
|
|||
FadeIn(
|
||||
words,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
),
|
||||
self.students[1].change_mode, "raise_right_hand"
|
||||
)
|
||||
|
@ -1816,7 +1816,7 @@ class FindAntiderivative(Antiderivative):
|
|||
self.add(functions)
|
||||
self.play(*list(map(ShowCreation, arcs)))
|
||||
for word in words:
|
||||
self.play(FadeIn(word, submobject_mode = "lagged_start"))
|
||||
self.play(FadeIn(word, lag_ratio = 0.5))
|
||||
self.wait()
|
||||
self.change_mode("confused")
|
||||
self.wait(2)
|
||||
|
@ -2515,7 +2515,7 @@ class NegativeArea(GraphScene):
|
|||
FadeIn(
|
||||
area,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
)
|
||||
)
|
||||
|
||||
|
@ -2688,7 +2688,7 @@ class NextVideo(TeacherStudentsScene):
|
|||
integral = TexMobject("\\int")
|
||||
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(
|
||||
next_video.set_color, YELLOW,
|
||||
next_video.shift, next_video.get_height()*DOWN/2,
|
||||
|
|
|
@ -49,7 +49,7 @@ class AverageOfContinuousVariable(GraphScene):
|
|||
self.play(FadeIn(
|
||||
question,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
))
|
||||
self.play(ShowCreation(v_line))
|
||||
for bound in reversed(self.bounds):
|
||||
|
@ -77,7 +77,7 @@ class ThisVideo(TeacherStudentsScene):
|
|||
series.to_edge(UP)
|
||||
this_video = series[8]
|
||||
|
||||
self.play(FadeIn(series, submobject_mode = "lagged_start"))
|
||||
self.play(FadeIn(series, lag_ratio = 0.5))
|
||||
self.teacher_says(
|
||||
"A new view of \\\\ the fundamental theorem",
|
||||
bubble_kwargs = {"height" : 3},
|
||||
|
@ -225,14 +225,14 @@ class LengthOfDayGraph(GraphScene):
|
|||
self.play(FadeIn(
|
||||
label,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.play(
|
||||
ShowCreation(graph, rate_func=linear),
|
||||
FadeIn(
|
||||
graph_label,
|
||||
rate_func = squish_rate_func(smooth, 0.5, 1),
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
),
|
||||
run_time = 3,
|
||||
)
|
||||
|
@ -271,7 +271,7 @@ class LengthOfDayGraph(GraphScene):
|
|||
FadeIn(
|
||||
panels,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
)
|
||||
)
|
||||
for angle in -np.pi/4, np.pi/4:
|
||||
|
@ -419,7 +419,7 @@ class AverageOfFiniteSet(Scene):
|
|||
self.add(lines)
|
||||
self.play(FadeIn(
|
||||
labels,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 3
|
||||
))
|
||||
self.wait()
|
||||
|
@ -497,7 +497,7 @@ class TryToAddInfinitelyManyPoints(AverageOfSineStart):
|
|||
MoveToTarget(
|
||||
v_lines,
|
||||
run_time = 3,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
),
|
||||
Write(plusses)
|
||||
)
|
||||
|
@ -595,7 +595,7 @@ class FiniteSample(TryToAddInfinitelyManyPoints):
|
|||
v_lines.copy(),
|
||||
summed_v_lines,
|
||||
run_time = 3,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
),
|
||||
Write(
|
||||
plusses,
|
||||
|
@ -1171,7 +1171,7 @@ class Antiderivative(AverageOfSineStart):
|
|||
|
||||
self.play(FadeIn(
|
||||
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,
|
||||
))
|
||||
self.wait()
|
||||
|
@ -1574,7 +1574,7 @@ class GeneralAverage(AverageOfContinuousVariable):
|
|||
self.play(FadeIn(
|
||||
rects,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
for new_rects in rect_list[1:]:
|
||||
self.transform_between_riemann_rects(rects, new_rects)
|
||||
|
@ -1712,7 +1712,7 @@ class GeneralAverage(AverageOfContinuousVariable):
|
|||
self.play(Transform(
|
||||
self.v_lines, new_v_lines,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.wait()
|
||||
|
||||
|
|
|
@ -346,7 +346,7 @@ class IntroduceNotation(TeacherStudentsScene):
|
|||
FadeIn(
|
||||
clunky_deriv,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
),
|
||||
RemovePiCreatureBubble(self.get_students()[1]),
|
||||
self.teacher.change_mode, "raise_right_hand"
|
||||
|
|
|
@ -233,7 +233,7 @@ class Introduction(TeacherStudentsScene):
|
|||
self.play(
|
||||
FadeIn(
|
||||
series,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 2
|
||||
),
|
||||
Blink(self.get_teacher())
|
||||
|
@ -313,7 +313,7 @@ class Introduction(TeacherStudentsScene):
|
|||
self.play(Write(remembered_symbols))
|
||||
self.play(ApplyMethod(
|
||||
remembered_symbols.fade, 0.7,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 3
|
||||
))
|
||||
self.play(
|
||||
|
@ -469,7 +469,7 @@ class HeartOfCalculus(GraphScene):
|
|||
)
|
||||
self.play(
|
||||
rects.restore,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 3
|
||||
)
|
||||
while rect_sets:
|
||||
|
@ -1747,7 +1747,7 @@ class IntroduceConcentricRings(CircleScene):
|
|||
self.play(
|
||||
MoveToTarget(
|
||||
moving_rings,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
),
|
||||
Write(
|
||||
VGroup(plusses, dots_equals_area),
|
||||
|
@ -2106,7 +2106,7 @@ class GraphIntegral(GraphScene):
|
|||
height_label = left_brace.get_text("$2\\pi r$")
|
||||
|
||||
self.play(
|
||||
ShowCreation(ticks, submobject_mode = "lagged_start"),
|
||||
ShowCreation(ticks, lag_ratio = 0.5),
|
||||
Write(R_label)
|
||||
)
|
||||
self.play(
|
||||
|
@ -2365,7 +2365,7 @@ class FundamentalTheorem(CircleScene):
|
|||
self.play(
|
||||
ApplyMethod(
|
||||
rings.restore,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 5
|
||||
),
|
||||
Animation(self.foreground_group),
|
||||
|
@ -2452,7 +2452,7 @@ class CalculusInANutshell(CircleScene):
|
|||
self.wait()
|
||||
self.play(Transform(
|
||||
calculus, rings,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 5
|
||||
))
|
||||
self.wait()
|
||||
|
@ -2482,7 +2482,7 @@ class CalculusInANutshell(CircleScene):
|
|||
)
|
||||
self.play(FadeIn(
|
||||
VGroup(*series[1:]),
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 2,
|
||||
))
|
||||
self.wait()
|
||||
|
|
|
@ -116,7 +116,7 @@ class AboutLinearAlgebra(Scene):
|
|||
self.play(Write(linalg, run_time = 1))
|
||||
self.wait()
|
||||
self.play(
|
||||
ShowCreation(arrows, submobject_mode = "lagged_start"),
|
||||
ShowCreation(arrows, lag_ratio = 0.5),
|
||||
FadeIn(all_subs),
|
||||
run_time = 2
|
||||
)
|
||||
|
|
|
@ -165,7 +165,7 @@ class DifferentConceptions(Scene):
|
|||
self.play(
|
||||
Write(two_dimensional),
|
||||
ApplyMethod(physy.change_mode, "pondering"),
|
||||
ShowCreation(random_vectors, submobject_mode = "lagged_start"),
|
||||
ShowCreation(random_vectors, lag_ratio = 0.5),
|
||||
run_time = 1
|
||||
)
|
||||
self.wait(2)
|
||||
|
@ -461,7 +461,7 @@ class HowIWantYouToThinkAboutVectors(Scene):
|
|||
self.play(ShowCreation(vector))
|
||||
self.wait(2)
|
||||
self.play(
|
||||
ShowCreation(plane, summobject_mode = "lagged_start"),
|
||||
ShowCreation(plane, lag_ratio=0.5),
|
||||
Animation(vector)
|
||||
)
|
||||
self.play(Write(axis_labels, run_time = 1))
|
||||
|
|
|
@ -819,7 +819,7 @@ class SymbolicEigenvectors(Scene):
|
|||
self.wait()
|
||||
self.play(Transform(
|
||||
q_marks, matrix.get_entries(),
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 2
|
||||
))
|
||||
self.remove(q_marks)
|
||||
|
@ -1449,7 +1449,7 @@ class RevisitExampleTransformation(ExampleTranformationScene):
|
|||
self.play(
|
||||
ShowCreation(
|
||||
vectors,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 2
|
||||
),
|
||||
*list(map(Animation, self.foreground_mobjects))
|
||||
|
|
|
@ -623,7 +623,7 @@ class FunctionGraphScene(Scene):
|
|||
def add_lines(self, output_lines):
|
||||
self.play(ShowCreation(
|
||||
output_lines,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 2
|
||||
))
|
||||
|
||||
|
@ -750,7 +750,7 @@ class AddTwoFunctions(FunctionGraphScene):
|
|||
kwargs = {}
|
||||
else:
|
||||
kwargs = {
|
||||
"submobject_mode" : "lagged_start",
|
||||
"lag_ratio" : 0.5,
|
||||
"run_time" : 3
|
||||
}
|
||||
self.play(*[
|
||||
|
@ -926,7 +926,7 @@ class FromVectorsToFunctions(VectorScene):
|
|||
words.to_corner(UP+LEFT)
|
||||
self.play(FadeIn(
|
||||
words,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 3
|
||||
))
|
||||
self.wait()
|
||||
|
@ -1643,7 +1643,7 @@ class IntroducePolynomialSpace(Scene):
|
|||
self.play(Write(coords.get_brackets()))
|
||||
self.play(
|
||||
entries.restore,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 3
|
||||
)
|
||||
self.wait()
|
||||
|
@ -1668,7 +1668,7 @@ class IntroducePolynomialSpace(Scene):
|
|||
self.wait()
|
||||
self.play(FadeIn(
|
||||
VGroup(*more_terms),
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 2
|
||||
))
|
||||
self.wait()
|
||||
|
@ -1738,7 +1738,7 @@ class IntroducePolynomialSpace(Scene):
|
|||
for anim in MoveToTarget(diag_entries), diag_entries.restore:
|
||||
self.play(
|
||||
anim,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 1.5,
|
||||
)
|
||||
self.wait()
|
||||
|
@ -2109,7 +2109,7 @@ class ToolsOfLinearAlgebra(Scene):
|
|||
words[-1].next_to(words[-2], DOWN)
|
||||
self.play(FadeIn(
|
||||
words,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 3
|
||||
))
|
||||
self.wait()
|
||||
|
@ -2227,7 +2227,7 @@ class ListAxioms(Scene):
|
|||
|
||||
self.play(FadeIn(
|
||||
axioms,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 5
|
||||
))
|
||||
self.wait()
|
||||
|
@ -2282,7 +2282,7 @@ class AxiomsAreInterface(Scene):
|
|||
self.play(FadeIn(mathy))
|
||||
self.play(
|
||||
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(Blink(mathy))
|
||||
|
@ -2326,7 +2326,7 @@ class VectorSpaceOfPiCreatures(Scene):
|
|||
|
||||
self.play(FadeIn(
|
||||
creatures,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 3
|
||||
))
|
||||
self.wait()
|
||||
|
@ -2502,7 +2502,7 @@ class WhatIsThree(Scene):
|
|||
self.play(*[
|
||||
Transform(
|
||||
trip, three,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 2
|
||||
)
|
||||
for trip in triplets
|
||||
|
|
|
@ -127,7 +127,7 @@ class DescribeTransformation(Scene):
|
|||
for mob in f_point, num_outputs:
|
||||
self.play(Transform(
|
||||
num_inputs, mob,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.wait()
|
||||
|
||||
|
@ -143,7 +143,7 @@ class DescribeTransformation(Scene):
|
|||
for mob in f_point, output_vect:
|
||||
self.play(Transform(
|
||||
input_vect, mob,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.play(Write(vector_output_words))
|
||||
self.wait()
|
||||
|
@ -259,13 +259,13 @@ class TransformManyVectors(LinearTransformationScene):
|
|||
for v in vectors.split()
|
||||
])
|
||||
|
||||
self.play(ShowCreation(vectors, submobject_mode = "lagged_start"))
|
||||
self.play(ShowCreation(vectors, lag_ratio = 0.5))
|
||||
self.wait()
|
||||
if self.use_dots:
|
||||
self.play(Transform(
|
||||
vectors, self.vectors_to_dots(vectors),
|
||||
run_time = 3,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
transformed_vectors = self.vectors_to_dots(transformed_vectors)
|
||||
self.wait()
|
||||
|
@ -279,7 +279,7 @@ class TransformManyVectors(LinearTransformationScene):
|
|||
self.play(Transform(
|
||||
vectors, self.dots_to_vectors(vectors),
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.wait()
|
||||
|
||||
|
@ -312,7 +312,7 @@ class TransformInfiniteGrid(LinearTransformationScene):
|
|||
def construct(self):
|
||||
self.setup()
|
||||
self.play(ShowCreation(
|
||||
self.plane, run_time = 3, submobject_mode = "lagged_start"
|
||||
self.plane, run_time = 3, lag_ratio = 0.5
|
||||
))
|
||||
self.wait()
|
||||
self.apply_transposed_matrix([[2, 1], [1, 2]])
|
||||
|
@ -386,7 +386,7 @@ class LookToWordLinear(Scene):
|
|||
Transform(transformation, faded_transformation),
|
||||
Transform(transformation_brace, linear_brace),
|
||||
Transform(function, new_sub_word),
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
)
|
||||
self.wait()
|
||||
|
||||
|
@ -772,10 +772,10 @@ class WatchManyVectorsMove(TransformManyVectors):
|
|||
])
|
||||
vectors.set_submobject_colors_by_gradient(PINK, YELLOW)
|
||||
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(
|
||||
dots, vectors,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 2
|
||||
))
|
||||
self.remove(dots)
|
||||
|
@ -1053,7 +1053,7 @@ class MatrixVectorMultiplication(LinearTransformationScene):
|
|||
self.play(
|
||||
FadeIn(brace),
|
||||
FadeIn(brace_words),
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
)
|
||||
self.wait()
|
||||
|
||||
|
|
|
@ -671,11 +671,11 @@ class GeneralMultiplication(MoreComplicatedExampleNumerically):
|
|||
self.play(Write(words, run_time = 2))
|
||||
self.play(Transform(
|
||||
m1_entries, m1_entries_target,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.play(Transform(
|
||||
m2_entries, m2_entries_target,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.wait()
|
||||
|
||||
|
@ -761,7 +761,7 @@ class AskAboutCommutativity(Scene):
|
|||
self.play(Transform(
|
||||
VMobject(eq, q_marks),
|
||||
VMobject(neq),
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.wait()
|
||||
|
||||
|
@ -912,7 +912,7 @@ class AskAssociativityQuestion(Scene):
|
|||
for letter, matrix in zip([a, b, c], matrices):
|
||||
self.play(Transform(
|
||||
letter.copy(), matrix,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.remove(*self.get_mobjects_from_last_animation())
|
||||
self.add(matrix)
|
||||
|
|
|
@ -261,7 +261,7 @@ class WhatHappensToOneSquareHappensToAll(LinearTransformationScene):
|
|||
square.shift(position)
|
||||
squares.add(square)
|
||||
self.play(FadeIn(
|
||||
squares, submobject_mode = "lagged_start",
|
||||
squares, lag_ratio = 0.5,
|
||||
run_time = 3
|
||||
))
|
||||
self.add_transformable_mobject(squares)
|
||||
|
@ -295,7 +295,7 @@ class BreakBlobIntoGridSquares(LinearTransformationScene):
|
|||
if blob.probably_contains(point):
|
||||
squares.add(square.copy().shift(point))
|
||||
self.play(ShowCreation(
|
||||
squares, submobject_mode = "lagged_start",
|
||||
squares, lag_ratio = 0.5,
|
||||
run_time = 2,
|
||||
))
|
||||
self.add_transformable_mobject(squares)
|
||||
|
@ -418,7 +418,7 @@ class NextFewVideos(Scene):
|
|||
icons.to_edge(LEFT)
|
||||
|
||||
self.play(
|
||||
FadeIn(icons, submobject_mode = "lagged_start"),
|
||||
FadeIn(icons, lag_ratio = 0.5),
|
||||
run_time = 3
|
||||
)
|
||||
self.wait()
|
||||
|
@ -485,7 +485,7 @@ class FlipSpaceOver(Scene):
|
|||
plane.add(text)
|
||||
|
||||
self.play(ShowCreation(
|
||||
plane1, submobject_mode = "lagged_start",
|
||||
plane1, lag_ratio = 0.5,
|
||||
run_time = 1
|
||||
))
|
||||
self.wait()
|
||||
|
@ -971,7 +971,7 @@ class FullFormulaExplanation(LinearTransformationScene):
|
|||
everyone.add(shape, tex_mob)
|
||||
self.play(FadeIn(
|
||||
everyone,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 1
|
||||
))
|
||||
|
||||
|
|
|
@ -180,7 +180,7 @@ class StockPrices(Scene):
|
|||
self.play(ShowCreation(
|
||||
VMobject(*stock_lines),
|
||||
run_time = 3,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.wait()
|
||||
|
||||
|
@ -287,7 +287,7 @@ class SystemOfEquations(Scene):
|
|||
|
||||
self.play(other_equations.fade, 0.7)
|
||||
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(*[
|
||||
ApplyMethod(m.scale_in_place, 1.2, rate_func = there_and_back)
|
||||
for m in scalars.split()
|
||||
|
@ -675,7 +675,7 @@ class ShowBijectivity(LinearTransformationScene):
|
|||
self.add_foreground_mobject(background, titles[0])
|
||||
|
||||
kwargs = {
|
||||
"submobject_mode" : "lagged_start",
|
||||
"lag_ratio" : 0.5,
|
||||
"run_time" : 2
|
||||
}
|
||||
anims = list(map(Animation, self.foreground_mobjects))
|
||||
|
@ -1680,7 +1680,7 @@ class NameNullSpace(LinearTransformationScene):
|
|||
self.play(Transform(
|
||||
vectors, line,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.wait()
|
||||
for label in null_space_label, kernel_label:
|
||||
|
|
|
@ -72,7 +72,7 @@ class TraditionalOrdering(RandolphScene):
|
|||
FadeIn(
|
||||
topics,
|
||||
run_time = 3,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
),
|
||||
)
|
||||
self.play(topics[1].set_color, PINK)
|
||||
|
@ -118,7 +118,7 @@ class ThisSeriesOrdering(RandolphScene):
|
|||
self.play(
|
||||
FadeIn(
|
||||
chapters,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 3
|
||||
),
|
||||
self.randy.change_mode, "sassy"
|
||||
|
@ -1043,7 +1043,7 @@ class AlwaysfollowIHatJHat(TeacherStudentsScene):
|
|||
])
|
||||
self.play(Transform(
|
||||
students, ponderers,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 2
|
||||
))
|
||||
self.random_blink(2)
|
||||
|
@ -1309,14 +1309,14 @@ class AssociationBetweenMatricesAndVectors(Scene):
|
|||
self.play(Transform(
|
||||
vectors, matrices,
|
||||
path_arc = np.pi/2,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 2,
|
||||
))
|
||||
self.wait()
|
||||
self.play(
|
||||
vectors.restore,
|
||||
path_arc = -np.pi/2,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 2
|
||||
)
|
||||
self.wait()
|
||||
|
@ -1475,7 +1475,7 @@ class ProjectOntoUnitVectorNumberline(VectorScene):
|
|||
proj_lines = self.get_proj_lines(dots, proj_dots)
|
||||
|
||||
self.wait()
|
||||
self.play(FadeIn(vectors, submobject_mode = "lagged_start"))
|
||||
self.play(FadeIn(vectors, lag_ratio = 0.5))
|
||||
self.wait()
|
||||
self.play(Transform(vectors, dots))
|
||||
self.wait()
|
||||
|
@ -1486,7 +1486,7 @@ class ProjectOntoUnitVectorNumberline(VectorScene):
|
|||
Transform(vectors, proj_dots),
|
||||
Transform(proj_lines, proj_dots),
|
||||
Animation(self.u_hat),
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 2
|
||||
)
|
||||
self.wait()
|
||||
|
|
|
@ -438,7 +438,7 @@ class DefineDualTransform(Scene):
|
|||
self.play(FadeIn(
|
||||
definitions,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.wait(2)
|
||||
self.play(*[
|
||||
|
@ -622,7 +622,7 @@ class DefineDualTransform(Scene):
|
|||
self.play(Transform(
|
||||
func, p_array,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.remove(func)
|
||||
self.add(p_array)
|
||||
|
|
|
@ -723,7 +723,7 @@ class JennysGrid(JenniferScene):
|
|||
ShowCreation(
|
||||
self.jenny_plane,
|
||||
run_time = 3,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
),
|
||||
self.jenny.change_mode, "speaking",
|
||||
self.jenny.look_at, ORIGIN,
|
||||
|
|
|
@ -75,8 +75,8 @@ class SymbolicThreeDTransform(Scene):
|
|||
self.play(Write(in_vect), Write(in_words))
|
||||
self.wait()
|
||||
self.add(in_vect.copy())
|
||||
self.play(Transform(in_vect, point, submobject_mode = "lagged_start"))
|
||||
self.play(Transform(in_vect, out_vect, submobject_mode = "lagged_start"))
|
||||
self.play(Transform(in_vect, point, lag_ratio = 0.5))
|
||||
self.play(Transform(in_vect, out_vect, lag_ratio = 0.5))
|
||||
self.add(out_words)
|
||||
self.wait()
|
||||
|
||||
|
@ -227,7 +227,7 @@ class ShowVCoordinateMeaning(Scene):
|
|||
coords.get_entries().copy(),
|
||||
VMobject(new_x, new_y, new_z),
|
||||
path_arc = -np.pi,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
),
|
||||
Write(VMobject(*[eq2, i, j, k] + list(plusses))),
|
||||
run_time = 3
|
||||
|
|
|
@ -247,7 +247,7 @@ class EndScreen(PiCreatureScene):
|
|||
FadeIn(
|
||||
words,
|
||||
run_time=2,
|
||||
submobject_mode="lagged_start"
|
||||
lag_ratio=0.5
|
||||
),
|
||||
self.pi_creature.change_mode, "hooray"
|
||||
)
|
||||
|
|
|
@ -3125,7 +3125,7 @@ class WriteComplexExponentialExpression(DrawFrequencyPlot):
|
|||
self.play(
|
||||
ReplacementTransform(
|
||||
pre_dots, time_graph.dots,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 2,
|
||||
),
|
||||
MoveToTarget(time_graph),
|
||||
|
@ -3465,7 +3465,7 @@ class ScaleUpCenterOfMass(WriteComplexExponentialExpression):
|
|||
# com_vector_copies,
|
||||
# path_arc = TAU/10,
|
||||
# run_time = 1.5,
|
||||
# submobject_mode = "lagged_start"
|
||||
# lag_ratio = 0.5
|
||||
# ))
|
||||
self.wait()
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ class FractalCreation(Scene):
|
|||
"max_order" : 5,
|
||||
"transform_kwargs" : {
|
||||
"path_arc" : np.pi/6,
|
||||
"submobject_mode" : "lagged_start",
|
||||
"lag_ratio" : 0.5,
|
||||
"run_time" : 2,
|
||||
},
|
||||
"fractal_kwargs" : {},
|
||||
|
@ -79,7 +79,7 @@ class KochSnowFlakeFractalCreation(FractalCreation):
|
|||
"num_submobjects" : 100,
|
||||
},
|
||||
"transform_kwargs" : {
|
||||
"submobject_mode" : "lagged_start",
|
||||
"lag_ratio" : 0.5,
|
||||
"path_arc" : np.pi/6,
|
||||
"run_time" : 2,
|
||||
},
|
||||
|
|
|
@ -50,7 +50,7 @@ class SierpinskiTest(Scene):
|
|||
self.play(FadeIn(
|
||||
sierp,
|
||||
run_time = 5,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
))
|
||||
self.wait()
|
||||
# self.play(sierp.scale, 2, sierp.get_top())
|
||||
|
@ -242,7 +242,7 @@ class IntroduceSierpinskiTriangle(PiCreatureScene):
|
|||
self.play(FadeIn(
|
||||
sierp,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.wait()
|
||||
self.play(
|
||||
|
@ -867,7 +867,7 @@ class ScaledLineMass(Scene):
|
|||
self.wait()
|
||||
self.play(FadeIn(
|
||||
VGroup(*shape_copy[1:]),
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.wait()
|
||||
self.play(Transform(
|
||||
|
|
|
@ -161,7 +161,7 @@ class CountingScene(Scene):
|
|||
result.append(ShowCreation(arrow))
|
||||
result.append(Transform(
|
||||
self.number_mob, new_number_mob,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
return result
|
||||
|
||||
|
@ -621,7 +621,7 @@ class IntroduceTowersOfHanoi(TowersOfHanoiScene):
|
|||
self.play(
|
||||
ApplyMethod(
|
||||
self.pegs.restore,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 2
|
||||
),
|
||||
Write(self.peg_labels)
|
||||
|
@ -658,7 +658,7 @@ class IntroduceTowersOfHanoi(TowersOfHanoiScene):
|
|||
self.play(FadeIn(
|
||||
disk_groups,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
for group in reversed(list(disk_groups)):
|
||||
self.play(group.restore)
|
||||
|
@ -710,7 +710,7 @@ class IntroduceTowersOfHanoi(TowersOfHanoiScene):
|
|||
def move_full_tower(self):
|
||||
self.move_subtower_to_peg(self.num_disks, 1, run_time = 2)
|
||||
self.wait()
|
||||
self.reset_disks(run_time = 1, submobject_mode = "lagged_start")
|
||||
self.reset_disks(run_time = 1, lag_ratio = 0.5)
|
||||
self.wait()
|
||||
|
||||
def move_single_disk(self):
|
||||
|
@ -885,7 +885,7 @@ class IntroduceBase10(Scene):
|
|||
MoveToTarget(number),
|
||||
ShowCreation(arrows),
|
||||
ApplyMethod(
|
||||
expansion.restore, submobject_mode = "lagged_start"),
|
||||
expansion.restore, lag_ratio = 0.5),
|
||||
run_time = 2
|
||||
)
|
||||
self.play(Write(title))
|
||||
|
@ -1180,7 +1180,7 @@ class BinaryCountingAtEveryScale(Scene):
|
|||
self.play(Transform(
|
||||
VGroup(*reversed(list(curr_bits))),
|
||||
VGroup(*reversed(list(bit_mobs[2**(self.num_bits-1)]))),
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
lag_factor = self.num_bits
|
||||
))
|
||||
self.wait()
|
||||
|
@ -1371,7 +1371,7 @@ class IntroduceSolveByCounting(TowersOfHanoiScene):
|
|||
return Succession(
|
||||
Transform(
|
||||
self.curr_bit_mob, next(self.bit_mobs_iter),
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
path_arc = -np.pi/3
|
||||
),
|
||||
Animation(self.curr_bit_mob)
|
||||
|
@ -2199,7 +2199,7 @@ class RecursiveSolutionToConstrained(RecursiveSolution):
|
|||
self.play(ApplyMethod(
|
||||
VGroup(VGroup(braces[-2], subdivisions[-2])).set_fill, None, 1,
|
||||
run_time = 3,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
))
|
||||
self.blink()
|
||||
for mob in last_subdivisions:
|
||||
|
@ -2271,7 +2271,7 @@ class SolveConstrainedByCounting(ConstrainedTowersOfHanoiScene):
|
|||
return Succession(
|
||||
Transform(
|
||||
self.curr_ternary_mob, next(self.ternary_mob_iter),
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
path_arc = np.pi/6,
|
||||
),
|
||||
Animation(self.curr_ternary_mob),
|
||||
|
@ -2438,7 +2438,7 @@ class TernaryCountingSelfSimilarPattern(Scene):
|
|||
def get_increment():
|
||||
return Transform(
|
||||
curr_ternary_mob, next(ternary_mob_iter),
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
path_arc = -np.pi/3
|
||||
)
|
||||
|
||||
|
@ -2506,7 +2506,7 @@ class SolveConstrainedWithTernaryCounting(ConstrainedTowersOfHanoiScene):
|
|||
self.play(Transform(
|
||||
self.curr_ternary_mob, next(self.ternary_mob_iter),
|
||||
path_arc = -np.pi/3,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = run_time,
|
||||
))
|
||||
|
||||
|
@ -2810,7 +2810,7 @@ class ShowSomeGraph(Scene):
|
|||
mob.set_color_by_gradient(YELLOW, MAROON_B)
|
||||
self.play(ShowCreation(
|
||||
mob,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 2,
|
||||
))
|
||||
self.wait()
|
||||
|
@ -2969,7 +2969,7 @@ class IntroduceGraphStructure(SierpinskiGraphScene):
|
|||
self.play(FadeIn(
|
||||
self.nodes,
|
||||
run_time = 3,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
lag_factor = 7,
|
||||
))
|
||||
vect = LEFT
|
||||
|
|
|
@ -2863,7 +2863,7 @@ class FiveDBoxExampleWithSliders(FourDBoxExampleWithSliders):
|
|||
MoveToTarget(
|
||||
re_rects,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
path_arc = np.pi
|
||||
),
|
||||
MoveToTarget(self.re_words),
|
||||
|
@ -2997,7 +2997,7 @@ class TenDBoxExampleWithSliders(FiveDBoxExampleWithSliders):
|
|||
MoveToTarget(
|
||||
re_rects,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
path_arc = np.pi
|
||||
),
|
||||
)
|
||||
|
|
|
@ -641,7 +641,7 @@ class Outline(PiCreatureScene):
|
|||
FadeIn(
|
||||
mob,
|
||||
run_time = 3,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
)
|
||||
for mob in [chis, arrows, numerators]
|
||||
])
|
||||
|
@ -818,7 +818,7 @@ class CountLatticePoints(LatticePointScene):
|
|||
ReplacementTransform(
|
||||
point_copies, squares,
|
||||
run_time = 3,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
lag_factor = 4,
|
||||
),
|
||||
Animation(self.lattice_points)
|
||||
|
@ -1229,7 +1229,7 @@ class LookAtExampleRing(LatticePointScene):
|
|||
about_point = self.plane_center,
|
||||
rate_func = smooth,
|
||||
),
|
||||
FadeIn(points, submobject_mode = "lagged_start"),
|
||||
FadeIn(points, lag_ratio = 0.5),
|
||||
run_time = 2,
|
||||
)
|
||||
self.wait()
|
||||
|
@ -1487,7 +1487,7 @@ class IntroduceComplexConjugate(LatticePointScene):
|
|||
self.play(FadeIn(
|
||||
equation,
|
||||
run_time = 3,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.wait(2)
|
||||
self.play(
|
||||
|
@ -1681,7 +1681,7 @@ class IntroduceComplexConjugate(LatticePointScene):
|
|||
)
|
||||
self.play(FadeIn(
|
||||
top_dot.magnitude_word,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.wait()
|
||||
self.play(ShowCreation(top_dot.arc))
|
||||
|
@ -1770,7 +1770,7 @@ class NameGaussianIntegers(LatticePointScene):
|
|||
self.play(FadeIn(
|
||||
gauss_name,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.wait(3)
|
||||
self.play(FadeOut(gauss_name))
|
||||
|
@ -2249,7 +2249,7 @@ class FactorizationPattern(Scene):
|
|||
self.play(FadeIn(
|
||||
factorizations,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.wait(4)
|
||||
self.play(*list(map(FadeOut, [movers, factorizations])))
|
||||
|
@ -3539,7 +3539,7 @@ class IntroduceChi(FactorizationPattern):
|
|||
FadeIn(
|
||||
mob,
|
||||
run_time = 3,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
)
|
||||
for mob in [chis, arrows, numbers]
|
||||
])
|
||||
|
@ -3636,7 +3636,7 @@ class IntroduceChi(FactorizationPattern):
|
|||
else:
|
||||
self.play(
|
||||
Write(labels),
|
||||
FadeIn(arrows, submobject_mode = "lagged_start"),
|
||||
FadeIn(arrows, lag_ratio = 0.5),
|
||||
OldLaggedStart(
|
||||
DrawBorderThenFill, dots,
|
||||
stroke_width = 4,
|
||||
|
@ -4063,7 +4063,7 @@ class ExpandCountWith45(SummarizeCountingRule):
|
|||
self.play(FadeIn(
|
||||
braces,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
))
|
||||
self.wait(2)
|
||||
|
||||
|
|
|
@ -492,7 +492,7 @@ class ThisPuzzleIsHard(UtilitiesPuzzleScene, PiCreatureScene):
|
|||
self.play(Transform(
|
||||
straight_lines, almost_solution_lines,
|
||||
run_time = 3,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.wait()
|
||||
|
||||
|
@ -546,7 +546,7 @@ class IntroduceGraph(PiCreatureScene):
|
|||
self.play(ReplacementTransform(
|
||||
pi_creatures, dots,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.add_foreground_mobjects(dots)
|
||||
self.play(
|
||||
|
@ -620,7 +620,7 @@ class IsK33Planar(UtilitiesPuzzleScene):
|
|||
self.play(ReplacementTransform(
|
||||
straight_lines, almost_solution_lines,
|
||||
run_time = 3,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.wait(2)
|
||||
|
||||
|
|
|
@ -692,7 +692,7 @@ class ComputationalNetwork(MovingCameraScene):
|
|||
self.wait()
|
||||
self.play(ReplacementTransform(
|
||||
full_derivative.copy(), rhs,
|
||||
submobject_mode="lagged_start",
|
||||
lag_ratio=0.5,
|
||||
run_time=2
|
||||
))
|
||||
self.wait()
|
||||
|
|
|
@ -237,7 +237,7 @@ class NetworkMobject(VGroup):
|
|||
return [ShowCreationThenDestruction(
|
||||
edge_group_copy,
|
||||
run_time = self.edge_propogation_time,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
)]
|
||||
|
||||
def add_output_labels(self):
|
||||
|
@ -428,14 +428,14 @@ class ExampleThrees(PiCreatureScene):
|
|||
moving_three.target[0].set_stroke(width = 0)
|
||||
moving_three.target[1].space_out_submobjects(1.5)
|
||||
self.play(MoveToTarget(
|
||||
moving_three, submobject_mode = "lagged_start"
|
||||
moving_three, lag_ratio = 0.5
|
||||
))
|
||||
self.play(
|
||||
Animation(randy),
|
||||
moving_three.replace, randy.eyes[1],
|
||||
moving_three.scale_in_place, 0.7,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
)
|
||||
self.play(
|
||||
Animation(randy),
|
||||
|
@ -668,7 +668,7 @@ class LayOutPlan(TeacherStudentsScene, NetworkScene):
|
|||
)
|
||||
self.play(ShowCreation(
|
||||
network_mob.edge_groups,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 2,
|
||||
lag_factor = 8,
|
||||
rate_func=linear,
|
||||
|
@ -870,7 +870,7 @@ class AlternateNeuralNetworks(PiCreatureScene):
|
|||
self.wait()
|
||||
self.play(
|
||||
examples[0].shift, MED_LARGE_BUFF*UP,
|
||||
FadeIn(examples[1], submobject_mode = "lagged_start"),
|
||||
FadeIn(examples[1], lag_ratio = 0.5),
|
||||
)
|
||||
self.wait()
|
||||
self.play(
|
||||
|
@ -1424,7 +1424,7 @@ class MoreHonestMNistNetworkPreview(IntroduceEachLayer):
|
|||
return Transform(
|
||||
mover, target,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
remover = True
|
||||
)
|
||||
|
||||
|
@ -1655,7 +1655,7 @@ class BreakUpMacroPatterns(IntroduceEachLayer):
|
|||
self.play(
|
||||
FadeIn(
|
||||
network_mob,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 3,
|
||||
),
|
||||
MoveToTarget(patterns)
|
||||
|
@ -2003,7 +2003,7 @@ class SecondLayerIsLittleEdgeLayer(IntroduceEachLayer):
|
|||
ShowCreationThenDestruction(
|
||||
edge_groups[i-1],
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
),
|
||||
FadeIn(active_layers[i])
|
||||
)
|
||||
|
@ -2014,7 +2014,7 @@ class SecondLayerIsLittleEdgeLayer(IntroduceEachLayer):
|
|||
self.play(MoveToTarget(
|
||||
neurons,
|
||||
remover = True,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 2
|
||||
))
|
||||
|
||||
|
@ -2075,7 +2075,7 @@ class SecondLayerIsLittleEdgeLayer(IntroduceEachLayer):
|
|||
self.play(MoveToTarget(
|
||||
image_group,
|
||||
rate_func = there_and_back,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 2,
|
||||
))
|
||||
|
||||
|
@ -2254,7 +2254,7 @@ class IntroduceWeights(IntroduceEachLayer):
|
|||
FadeOut(self.network_mob.output_labels),
|
||||
Animation(neuron),
|
||||
neuron.edges_in.set_stroke, None, 2,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 2
|
||||
)
|
||||
|
||||
|
@ -2279,13 +2279,13 @@ class IntroduceWeights(IntroduceEachLayer):
|
|||
FadeIn(rect),
|
||||
ShowCreation(
|
||||
pixels,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 2,
|
||||
)
|
||||
)
|
||||
self.play(
|
||||
pixels_to_detect.set_fill, WHITE, 1,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 2
|
||||
)
|
||||
self.wait(2)
|
||||
|
@ -2507,7 +2507,7 @@ class IntroduceWeights(IntroduceEachLayer):
|
|||
self.play(
|
||||
FadeIn(
|
||||
VGroup(*weight_grid[len(decimals):]),
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 3
|
||||
),
|
||||
*[
|
||||
|
@ -2538,13 +2538,13 @@ class IntroduceWeights(IntroduceEachLayer):
|
|||
self.play(MoveToTarget(
|
||||
weight_grid,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.wait()
|
||||
self.play(Transform(
|
||||
pixels, digit,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.wait()
|
||||
self.play(weight_grid.move_to, pixels)
|
||||
|
@ -2554,7 +2554,7 @@ class IntroduceWeights(IntroduceEachLayer):
|
|||
self.pixels_to_detect.copy(),
|
||||
self.weighted_sum,
|
||||
run_time = 3,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
),
|
||||
Animation(weight_grid),
|
||||
)
|
||||
|
@ -2878,7 +2878,7 @@ class IncludeBias(IntroduceWeights):
|
|||
colored_pixels.shift, MED_LARGE_BUFF*UP,
|
||||
rate_func = there_and_back,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.wait()
|
||||
|
||||
|
@ -3037,7 +3037,7 @@ class ShowRemainingNetwork(IntroduceWeights):
|
|||
]
|
||||
edges.set_stroke(width = 2)
|
||||
self.play(
|
||||
ShowCreation(edges, submobject_mode = "lagged_start"),
|
||||
ShowCreation(edges, lag_ratio = 0.5),
|
||||
FadeIn(neuron),
|
||||
*added_anims,
|
||||
run_time = 1.5
|
||||
|
@ -3597,7 +3597,7 @@ class IntroduceWeightMatrix(NetworkScene):
|
|||
self.play(FadeIn(
|
||||
lower_rows,
|
||||
run_time = 3,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
))
|
||||
self.wait()
|
||||
|
||||
|
@ -4072,7 +4072,7 @@ class NeuronIsFunction(MoreHonestMNistNetworkPreview):
|
|||
FadeIn(
|
||||
mob,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
)
|
||||
for mob in (self.network_mob.layers, self.network_mob.edge_groups)
|
||||
]
|
||||
|
|
|
@ -213,7 +213,7 @@ class PreviewLearning(NetworkScene):
|
|||
layer_animation = Transform(
|
||||
VGroup(*layers), VGroup(*active_layers),
|
||||
run_time = run_time,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
rate_func=linear,
|
||||
)
|
||||
|
||||
|
@ -615,7 +615,7 @@ class IntroduceCostFunction(PreviewLearning):
|
|||
edges.remove(*neuron.edges_in)
|
||||
output_labels = network_mob.output_labels
|
||||
kwargs = {
|
||||
"submobject_mode" : "lagged_start",
|
||||
"lag_ratio" : 0.5,
|
||||
"run_time" : 2,
|
||||
}
|
||||
self.play(
|
||||
|
@ -694,7 +694,7 @@ class IntroduceCostFunction(PreviewLearning):
|
|||
neuron.set_fill, None, 0.5,
|
||||
FadeIn(formula),
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
)
|
||||
self.play(OldLaggedStart(
|
||||
ShowCreationThenDestruction,
|
||||
|
@ -813,7 +813,7 @@ class IntroduceCostFunction(PreviewLearning):
|
|||
)
|
||||
self.play(
|
||||
MoveToTarget(
|
||||
neurons, submobject_mode = "lagged_start",
|
||||
neurons, lag_ratio = 0.5,
|
||||
remover = True
|
||||
),
|
||||
layer0.neurons.set_fill, None, 0,
|
||||
|
@ -1269,7 +1269,7 @@ class EmphasizeComplexityOfCostFunction(IntroduceCostFunction):
|
|||
dot.move_to(input_words.get_right())
|
||||
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(
|
||||
dot.move_to, image,
|
||||
dot.set_fill, None, 0,
|
||||
|
@ -2023,7 +2023,7 @@ class ShowFullCostFunctionGradient(PreviewLearning):
|
|||
ReplacementTransform(
|
||||
edges, edges_target,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
),
|
||||
OldLaggedStart(FadeIn, words),
|
||||
)
|
||||
|
@ -2072,7 +2072,7 @@ class ShowFullCostFunctionGradient(PreviewLearning):
|
|||
self.play(
|
||||
Transform(
|
||||
nd, VectorizedPoint(od.get_center()),
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
remover = True
|
||||
),
|
||||
ChangingDecimal(
|
||||
|
@ -2672,7 +2672,7 @@ class GradientNudging(PreviewLearning):
|
|||
edge.rotate_in_place(np.pi)
|
||||
return MoveToTarget(
|
||||
edges,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
lag_factor = 8,
|
||||
run_time = 1.5
|
||||
)
|
||||
|
@ -3176,7 +3176,7 @@ class InputRandomData(TestPerformance):
|
|||
self.play(MoveToTarget(
|
||||
image,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.activate_network(rand_vect, FadeOut(image))
|
||||
|
||||
|
|
|
@ -321,7 +321,7 @@ class InterpretGradientComponents(GradientNudging):
|
|||
Transform(
|
||||
grad_terms, points,
|
||||
remover = True,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 1
|
||||
),
|
||||
FadeOut(words),
|
||||
|
@ -890,7 +890,7 @@ class WalkThroughTwoExample(ShowAveragingCost):
|
|||
self.play(
|
||||
mob.shift, MED_SMALL_BUFF*DOWN,
|
||||
rate_func = there_and_back,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 1.5
|
||||
)
|
||||
self.wait()
|
||||
|
@ -2708,7 +2708,7 @@ class SimplestNetworkExample(PreviewLearning):
|
|||
|
||||
self.play(ShowCreation(
|
||||
mob.number_line,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.play(
|
||||
ShowCreation(mob.arrow),
|
||||
|
|
|
@ -69,7 +69,7 @@ class SideGigToFullTime(Scene):
|
|||
ApplyMethod(
|
||||
dollar_signs.shift,
|
||||
(FRAME_Y_RADIUS+1)*DOWN,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
),
|
||||
morty.change_mode, "guilty",
|
||||
morty.look, DOWN+RIGHT
|
||||
|
@ -550,7 +550,7 @@ class MakeALotOfPiCreaturesHappy(Scene):
|
|||
MoveToTarget(
|
||||
pis,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
lag_factor = 5,
|
||||
)
|
||||
)
|
||||
|
|
|
@ -111,7 +111,7 @@ class IntroducePutnam(Scene):
|
|||
self.wait()
|
||||
self.play(ReplacementTransform(
|
||||
out_of_tens.copy(), VGroup(out_of_120),
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 2,
|
||||
))
|
||||
self.wait()
|
||||
|
@ -218,7 +218,7 @@ class IntroduceTetrahedronSupplement(Scene):
|
|||
self.wait(0.7)
|
||||
self.remove(num)
|
||||
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.play(Write(question))
|
||||
self.wait(2)
|
||||
|
|
|
@ -2169,7 +2169,7 @@ class DrawRadialLines(PointsWeMiss):
|
|||
self.play(ReplacementTransform(
|
||||
seed_dots, self.lines,
|
||||
run_time = 3,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
self.play(OldLaggedStart(
|
||||
DrawBorderThenFill, new_dots,
|
||||
|
|
|
@ -2658,7 +2658,7 @@ class AmbiguityInLongEchos(IntroduceDopplerRadar, PiCreatureScene):
|
|||
|
||||
self.play(ReplacementTransform(
|
||||
VGroup(fourier_graph), shifted_graphs,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 2
|
||||
))
|
||||
self.wait()
|
||||
|
@ -3164,7 +3164,7 @@ class ShowMomentumFormula(IntroduceDeBroglie, TeacherStudentsScene):
|
|||
self.wait()
|
||||
kwargs = {
|
||||
"path_arc" : TAU/4,
|
||||
"submobject_mode" : "lagged_start",
|
||||
"lag_ratio" : 0.5,
|
||||
"lag_ratio" : 0.7,
|
||||
"run_time" : 1.5,
|
||||
}
|
||||
|
@ -3390,7 +3390,7 @@ class SortOfDopplerEffect(PiCreatureScene):
|
|||
self.play(
|
||||
Transform(time, space),
|
||||
Transform(space, time),
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 1,
|
||||
)
|
||||
self.play(FadeOut(time), FadeOut(space))
|
||||
|
@ -4356,7 +4356,7 @@ class ThinkOfHeisenbergUncertainty(PiCreatureScene):
|
|||
morty.change, "raise_left_hand", groups,
|
||||
FadeIn(
|
||||
groups,
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 3,
|
||||
)
|
||||
)
|
||||
|
|
|
@ -1218,7 +1218,7 @@ class ShowVectorEquation(Scene):
|
|||
FadeIn(moving_brace.mobject),
|
||||
FadeIn(x_without_phi),
|
||||
FadeIn(moving_x_without_phi.mobject),
|
||||
submobject_mode = "lagged_start",
|
||||
lag_ratio = 0.5,
|
||||
run_time = 2,
|
||||
)
|
||||
self.wait(3)
|
||||
|
|
|
@ -1555,7 +1555,7 @@ class ComplexFunctionsAsTransformations(ComplexTransformationScene):
|
|||
self.play(FadeIn(
|
||||
input_dots,
|
||||
run_time = 2,
|
||||
submobject_mode = "lagged_start"
|
||||
lag_ratio = 0.5
|
||||
))
|
||||
for in_dot, out_dot, arrow in zip(input_dots, output_dots, arrows):
|
||||
self.play(
|
||||
|
|
Loading…
Add table
Reference in a new issue