mirror of
https://github.com/3b1b/manim.git
synced 2025-11-14 22:57:44 +00:00
Randomize patron names
This commit is contained in:
parent
8b1643f55d
commit
d0b32a9eb9
1 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue