mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Add supporter exception
This commit is contained in:
parent
e3a40388ec
commit
5121248c25
1 changed files with 14 additions and 2 deletions
|
@ -102,7 +102,7 @@ class PatreonThanks(Scene):
|
|||
patreon_logo = PatreonLogo()
|
||||
patreon_logo.to_edge(UP)
|
||||
|
||||
patrons = list(map(TextMobject, self.specific_patrons))
|
||||
patrons = list(map(TextMobject, self.specific_patronds))
|
||||
num_groups = float(len(patrons)) / self.max_patron_group_size
|
||||
proportion_range = np.linspace(0, 1, num_groups + 1)
|
||||
indices = (len(patrons) * proportion_range).astype('int')
|
||||
|
@ -213,7 +213,14 @@ class PatreonEndScreen(PatreonThanks, PiCreatureScene):
|
|||
underline.next_to(thanks, DOWN, SMALL_BUFF)
|
||||
thanks.add(underline)
|
||||
|
||||
patrons = VGroup(*list(map(TextMobject, self.specific_patrons)))
|
||||
changed_patron_names = map(
|
||||
self.modify_patron_name,
|
||||
self.specific_patrons,
|
||||
)
|
||||
patrons = VGroup(*map(
|
||||
TextMobject,
|
||||
changed_patron_names,
|
||||
))
|
||||
patrons.scale(self.patron_scale_val)
|
||||
for patron in patrons:
|
||||
if patron.get_width() > self.max_patron_width:
|
||||
|
@ -252,6 +259,11 @@ class PatreonEndScreen(PatreonThanks, PiCreatureScene):
|
|||
self.add(columns, black_rect, line, thanks)
|
||||
self.wait(wait_time)
|
||||
|
||||
def modify_patron_name(self, name):
|
||||
if name is "RedAgent14":
|
||||
return "Brian Shepetofsky"
|
||||
return name
|
||||
|
||||
|
||||
class LogoGenerationTemplate(MovingCameraScene):
|
||||
def setup(self):
|
||||
|
|
Loading…
Add table
Reference in a new issue