Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Small tweak to patron scroll

Grant Sanderson85e5b20ede3f
diff --git a/manimlib/for_3b1b_videos/common_scenes.py b/manimlib/for_3b1b_videos/common_scenes.py
index 6c417a984..88996b4b6 100644
--- a/manimlib/for_3b1b_videos/common_scenes.py
+++ b/manimlib/for_3b1b_videos/common_scenes.py
@@ -259,11 +259,15 @@ class PatreonEndScreen(PatreonThanks, PiCreatureScene):
self.wait(wait_time)
def modify_patron_name(self, name):
- if name.lower() == "RedAgent14".lower():
- return "Brian Shepetofsky"
- elif name.lower() == "DeathByShrimp".lower():
- return "Henry Bresnahan"
-
+ modification_map = {
+ "RedAgent14": "Brian Shepetofsky",
+ "DeathByShrimp": "Henry Bresnahan",
+ "akostrikov": "Aleksandr Kostrikov",
+ "Jacob Baxter": "Will Fleshman",
+ }
+ for n1, n2 in modification_map.items():
+ if name.lower() == n1.lower():
+ return n2
return name