From 3dc3a61896d9e40991aa789ba6cbaca4b808cfb8 Mon Sep 17 00:00:00 2001 From: Anthony Debucquoy Date: Fri, 7 Mar 2025 11:28:35 +0100 Subject: [PATCH] stop blinking --- main.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 1c794c9..cb97f03 100644 --- a/main.py +++ b/main.py @@ -48,13 +48,20 @@ class snowflake(Scene): self.wait(1) vg = VGroup() + self.add(vg) for i in range(3): 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.wait(1) + vg.add(*[e for e in new_vg]) + self.remove(new_vg) + self.play(Uncreate(vg)) self.play(*[FadeOut(mob) for mob in self.mobjects])