stop blinking
This commit is contained in:
parent
4434c0bca1
commit
3dc3a61896
11
main.py
11
main.py
@ -48,13 +48,20 @@ class snowflake(Scene):
|
|||||||
self.wait(1)
|
self.wait(1)
|
||||||
|
|
||||||
vg = VGroup()
|
vg = VGroup()
|
||||||
|
self.add(vg)
|
||||||
for i in range(3):
|
for i in range(3):
|
||||||
points = SegmentedLine(points)
|
points = SegmentedLine(points)
|
||||||
vg.add(*[Dot(p) for p in points])
|
|
||||||
self.play(Create(vg))
|
new_vg = VGroup(*[Dot(p) for p in points])
|
||||||
|
self.play(Create(new_vg))
|
||||||
|
|
||||||
self.play(segment.animate.set_points_as_corners(points))
|
self.play(segment.animate.set_points_as_corners(points))
|
||||||
|
|
||||||
self.wait(1)
|
self.wait(1)
|
||||||
|
|
||||||
|
vg.add(*[e for e in new_vg])
|
||||||
|
self.remove(new_vg)
|
||||||
|
|
||||||
self.play(Uncreate(vg))
|
self.play(Uncreate(vg))
|
||||||
self.play(*[FadeOut(mob) for mob in self.mobjects])
|
self.play(*[FadeOut(mob) for mob in self.mobjects])
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user