Skip to content

Commit 9dc2410

Browse files
Update logo
Signed-off-by: Jacob Stopak <jacob@initialcommit.io>
1 parent 84d62ba commit 9dc2410

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

git_sim/logo.py

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,10 @@ def draw_logo(self):
103103
circle5,
104104
circle6,
105105
circle7,
106-
title,
107106
arc1,
108107
arc2,
109108
arc3,
109+
title,
110110
arrow1,
111111
arrow2,
112112
arrow3,
@@ -118,11 +118,12 @@ def draw_logo(self):
118118
)
119119

120120
if settings.animate:
121-
self.camera.frame.move_to(self.toFadeOut.get_center()),
122-
self.camera.frame.scale_to_fit_width(self.toFadeOut.get_width() * 1.1)
121+
self.camera.frame.move_to(self.toFadeOut.get_center())
122+
self.toFadeOut.remove(circle2, circle3, arc1, arc2, arc3)
123+
self.camera.frame.scale_to_fit_width(self.toFadeOut.get_width() * 1.25)
123124
if self.toFadeOut.get_height() >= self.camera.frame.get_height():
124125
self.camera.frame.scale_to_fit_height(self.toFadeOut.get_height() * 1.25)
125-
self.play(m.AddTextLetterByLetter(title), m.Create(circle1), m.Create(arc1), m.Create(circle2), m.Create(arc2), m.Create(circle3), m.Create(arc3), run_time=1/settings.speed)
126+
self.play(m.AddTextLetterByLetter(title), m.Create(circle1))
126127
self.play(m.Create(arrow1), run_time=1/(settings.speed*2.5))
127128
self.play(m.Create(circle4), m.AddTextLetterByLetter(message1), run_time=1/(settings.speed*2.5))
128129
self.play(m.Create(arrow2), run_time=1/(settings.speed*2.5))
@@ -131,6 +132,17 @@ def draw_logo(self):
131132
self.play(m.Create(circle6), m.AddTextLetterByLetter(message3), run_time=1/(settings.speed*2.5))
132133
self.play(m.Create(arrow4), run_time=1/(settings.speed*2.5))
133134
self.play(m.Create(circle7), m.AddTextLetterByLetter(message4), run_time=1/(settings.speed*2.5))
135+
self.toFadeOut.add(circle2, circle3, arc1, arc2, arc3)
136+
self.play(self.camera.frame.animate.move_to(self.toFadeOut.get_center()))
137+
self.play(
138+
self.camera.frame.animate.scale_to_fit_width(self.toFadeOut.get_width() * 1.1),
139+
self.camera.frame.animate.scale_to_fit_height(self.toFadeOut.get_height() * 1.25),
140+
m.Create(circle2),
141+
m.Create(circle3),
142+
m.Create(arc1),
143+
m.Create(arc2),
144+
m.Create(arc3)
145+
)
134146
else:
135147
self.add(
136148
circle1,

0 commit comments

Comments
 (0)