CircleThenFadeAround -> ShowCreationThenFadeAround

This commit is contained in:
Grant Sanderson 2019-01-15 12:20:43 -08:00
parent 737fe3fde7
commit e5e233262c
12 changed files with 17 additions and 17 deletions

View file

@ -927,7 +927,7 @@ class PiComputingAlgorithmsAxes(Scene):
lag_ratio=0.4,
))
self.wait()
self.play(CircleThenFadeAround(algorithms[-1][0]))
self.play(ShowCreationThenFadeAround(algorithms[-1][0]))
def get_machin_like_formula(self):
formula = TexMobject(

View file

@ -385,7 +385,7 @@ class AskAboutFindingNewVelocities(Scene):
).set_color(YELLOW)
self.play(
CircleThenFadeAround(energy_expression),
ShowCreationThenFadeAround(energy_expression),
momentum_text.set_fill, {"opacity": 0.25},
FadeOut(self.all_velocity_labels),
)
@ -616,9 +616,8 @@ class IntroduceVelocityPhaseSpace(AskAboutFindingNewVelocities):
self.add(equations)
self.play(LaggedStart(
AnimationGroup,
ShowCreationThenDestruction,
equations.copy().set_stroke(YELLOW, 3).set_fill(opacity=0),
lambda m: (ShowCreation(m), FadeOut(m)),
lag_ratio=0.8,
remover=True,
))

View file

@ -203,6 +203,7 @@ class VFadeIn(Animation):
to mobjects while they are being animated in some other way (e.g. shifting
then) in a way that does not work with FadeIn and FadeOut
"""
def update_submobject(self, submobject, starting_submobject, alpha):
submobject.set_stroke(
opacity=interpolate(0, starting_submobject.get_stroke_opacity(), alpha)

View file

@ -174,7 +174,7 @@ class ShowCreationThenDestructionAround(AnimationOnSurroundingRectangle):
}
class CircleThenFadeAround(AnimationOnSurroundingRectangle):
class ShowCreationThenFadeAround(AnimationOnSurroundingRectangle):
CONFIG = {
"rect_to_animation": lambda rect: Succession(
ShowCreation, rect,

View file

@ -527,9 +527,9 @@ class FunctionGInSymbols(Scene):
VGroup(seeking_text, g_equals_zero).shift, 1.5 * DOWN
)
self.wait()
self.play(CircleThenFadeAround(g_of_neg_p[2]))
self.play(ShowCreationThenFadeAround(g_of_neg_p[2]))
self.wait()
self.play(CircleThenFadeAround(neg_g_of_p))
self.play(ShowCreationThenFadeAround(neg_g_of_p))
self.wait()
self.play(neg_g_of_p.restore)
rects = VGroup(*map(SurroundingRectangle, [f_of_p, f_of_neg_p]))

View file

@ -387,7 +387,7 @@ class ShowArrayOfEccentricities(Scene):
e_copy.set_color(RED)
self.play(ShowCreation(e_copy))
self.play(
CircleThenFadeAround(
ShowCreationThenFadeAround(
eccentricity_labels[i],
),
FadeOut(e_copy)

View file

@ -857,7 +857,7 @@ class CylinderModel(Scene):
self.wait()
self.play(
movers.apply_complex_function, joukowsky_map,
CircleThenFadeAround(self.func_label),
ShowCreationThenFadeAround(self.func_label),
run_time=2
)
self.add(self.get_stream_lines_animation(stream_lines))

View file

@ -310,9 +310,9 @@ class IntegralSymbols(Scene):
self.play(FadeInFrom(rhs, 4 * LEFT))
self.wait()
self.play(CircleThenFadeAround(rhs[1]))
self.play(ShowCreationThenFadeAround(rhs[1]))
self.wait()
self.play(CircleThenFadeAround(rhs[2:]))
self.play(ShowCreationThenFadeAround(rhs[2:]))
self.wait()
self.play(
GrowFromCenter(int_brace),

View file

@ -3360,7 +3360,7 @@ class ShowEqualAngleSlices(IntroduceShapeOfVelocities):
delta_t_numerator.scale, 1.5, {"about_edge": DOWN},
delta_t_numerator.set_color, YELLOW
)
self.play(CircleThenFadeAround(prop_exp[:-2]))
self.play(ShowCreationThenFadeAround(prop_exp[:-2]))
self.play(
delta_t_numerator.fade, 1,
MoveToTarget(moving_R_squared),
@ -3447,7 +3447,7 @@ class ShowEqualAngleSlices(IntroduceShapeOfVelocities):
polygon.set_fill(BLUE_E, opacity=0.8)
polygon.set_stroke(WHITE, 3)
self.play(CircleThenFadeAround(v1))
self.play(ShowCreationThenFadeAround(v1))
self.play(
MoveToTarget(v1),
GrowFromCenter(root_dot),

View file

@ -4182,7 +4182,7 @@ class IntroduceQuaternions(Scene):
FadeInFromDown(number),
Write(label),
)
self.play(CircleThenFadeAround(
self.play(ShowCreationThenFadeAround(
number[2:],
surrounding_rectangle_config={"color": BLUE}
))
@ -4630,7 +4630,7 @@ class BreakUpQuaternionMultiplicationInParts(Scene):
)
self.play(
randy.change, "confused", rotate_words,
CircleThenFadeAround(rotate_words),
ShowCreationThenFadeAround(rotate_words),
)
self.play(LaggedStart(
FadeInFrom, q_marks,

View file

@ -1861,7 +1861,7 @@ class JustifyHeightSquish(MovingCameraScene):
))
self.wait()
self.play(ReplacementTransform(q_mark, alpha_label1))
self.play(CircleThenFadeAround(
self.play(ShowCreationThenFadeAround(
equation,
surrounding_rectangle_config={
"buff": 0.015,

View file

@ -1018,7 +1018,7 @@ class ShowNavierStokesEquations(Scene):
FadeInFromDown(labels[0]),
newtons_second.next_to, variables, RIGHT, LARGE_BUFF
)
self.play(CircleThenFadeAround(parts[0]))
self.play(ShowCreationThenFadeAround(parts[0]))
self.wait()
self.play(LaggedStart(FadeInFrom, labels[1:]))
self.wait(3)