mirror of
https://github.com/3b1b/manim.git
synced 2026-04-26 03:00:23 -04:00
Make initial animation of GradientNudging a bit cleaner
This commit is contained in:
@@ -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)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user