Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Randomize patron names

Grant Sandersond0b32a9eb928
diff --git a/topics/common_scenes.py b/topics/common_scenes.py
index 4d1354f68..265e210cb 100644
--- a/topics/common_scenes.py
+++ b/topics/common_scenes.py
@@ -123,8 +123,11 @@ class PatreonEndScreen(PatreonThanks):
"n_patron_columns" : 3,
"max_patron_width" : 3,
"run_time" : 20,
+ "randomize_order" : True,
}
def construct(self):
+ if self.randomize_order:
+ random.shuffle(self.specific_patrons)
self.add_title()
self.scroll_through_patrons()
@@ -141,7 +144,6 @@ class PatreonEndScreen(PatreonThanks):
pi.next_to(title, vect, buff = MED_LARGE_BUFF)
self.add_foreground_mobjects(title, randy, morty)
-
def scroll_through_patrons(self):
logo_box = Square(side_length = 2.5)
logo_box.to_corner(DOWN+LEFT, buff = MED_LARGE_BUFF)