Added simple endscreen animation

This commit is contained in:
Grant Sanderson 2017-04-25 13:17:58 -07:00
parent 2188723c57
commit 85a0f38668
2 changed files with 11 additions and 8 deletions

View file

@ -2750,10 +2750,11 @@ class Chapter1PatreonThanks(PatreonThanks):
class EndScreen(PiCreatureScene):
CONFIG = {
"seconds_to_blink" : 4,
"seconds_to_blink" : 3,
}
def construct(self):
words = TextMobject("End screen \\\\ clicky stuffs")
words = TextMobject("Clicky stuffs")
words.next_to(self.pi_creature, UP)
words.to_edge(UP)
self.play(
@ -2764,25 +2765,27 @@ class EndScreen(PiCreatureScene):
),
self.pi_creature.change_mode, "hooray"
)
self.dither(3)
self.dither()
mode_point_pairs = [
("raise_left_hand", 5*LEFT+3*UP),
("raise_right_hand", 5*RIGHT+3*UP),
("thinking", 5*LEFT+2*DOWN),
("thinking", 5*RIGHT+2*DOWN),
("thinking", 5*RIGHT+2*DOWN),
("happy", 5*LEFT+3*UP),
("raise_right_hand", 5*RIGHT+3*UP),
]
for mode, point in mode_point_pairs:
self.play(self.pi_creature.change, mode, point)
self.dither(3)
self.dither()
self.dither(3)
def create_pi_creature(self):
self.pi_creature = Randolph()
self.pi_creature.shift(2*DOWN + LEFT)
self.pi_creature.shift(2*DOWN + 1.5*LEFT)
return self.pi_creature
class Thumbnail(AlternateAreaUnderCurve):
CONFIG = {
"x_axis_label" : "",

View file

@ -2640,7 +2640,7 @@ class FinalWords(TeacherStudentsScene):
)
self.dither(3)
class Chapter5PatreonThanks(PatreonThanks):
class Chapter6PatreonThanks(PatreonThanks):
CONFIG = {
"specific_patrons" : [
"Ali Yahya",