Make initial animation of GradientNudging a bit cleaner

This commit is contained in:
Grant Sanderson 2017-10-19 14:32:12 -07:00
parent 67cc62a623
commit cb1dd8a6c1

View file

@ -2658,11 +2658,12 @@ class GradientNudging(PreviewLearning):
for edge_group in network_mob.edge_groups
])
mover = VGroup(*decimals.family_members_with_points()).copy()
mover.set_fill(opacity = 0)
mover.set_stroke(width = 1)
target = VGroup(*self.network_mob.edge_groups.family_members_with_points())
self.play(
ReplacementTransform(
decimals.copy().set_fill(opacity = 0).set_stroke(width = 1),
self.network_mob.edge_groups
),
ReplacementTransform(mover, target),
FadeIn(words),
LaggedStart(GrowArrow, arrows, run_time = 1)
)