Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Added simple endscreen animation

Grant Sanderson85a0f3866831
diff --git a/eoc/chapter1.py b/eoc/chapter1.py
index 93544d34b..128d8afdd 100644
--- a/eoc/chapter1.py
+++ b/eoc/chapter1.py
@@ -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" : "",
diff --git a/eoc/chapter6.py b/eoc/chapter6.py
index f33cc99e7..a81976bc0 100644
--- a/eoc/chapter6.py
+++ b/eoc/chapter6.py
@@ -2640,7 +2640,7 @@ class FinalWords(TeacherStudentsScene):
)
self.dither(3)
-class Chapter5PatreonThanks(PatreonThanks):
+class Chapter6PatreonThanks(PatreonThanks):
CONFIG = {
"specific_patrons" : [
"Ali Yahya",