mirror of
https://github.com/3b1b/manim.git
synced 2025-09-19 04:41:56 +00:00
Added simple endscreen animation
This commit is contained in:
parent
2188723c57
commit
85a0f38668
2 changed files with 11 additions and 8 deletions
|
@ -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" : "",
|
||||
|
|
|
@ -2640,7 +2640,7 @@ class FinalWords(TeacherStudentsScene):
|
|||
)
|
||||
self.dither(3)
|
||||
|
||||
class Chapter5PatreonThanks(PatreonThanks):
|
||||
class Chapter6PatreonThanks(PatreonThanks):
|
||||
CONFIG = {
|
||||
"specific_patrons" : [
|
||||
"Ali Yahya",
|
||||
|
|
Loading…
Add table
Reference in a new issue