mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Make initial animation of GradientNudging a bit cleaner
This commit is contained in:
parent
67cc62a623
commit
cb1dd8a6c1
1 changed files with 5 additions and 4 deletions
|
@ -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)
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue