Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Bug fixes to logo generation

Grant Sanderson22f1be11ef89
diff --git a/for_3b1b_videos/common_scenes.py b/for_3b1b_videos/common_scenes.py
index c50f3e167..74d3f6741 100644
--- a/for_3b1b_videos/common_scenes.py
+++ b/for_3b1b_videos/common_scenes.py
@@ -244,18 +244,19 @@ class PatreonEndScreen(PatreonThanks):
class LogoGenerationTemplate(MovingCameraScene):
def setup(self):
+ MovingCameraScene.setup(self)
frame = self.camera_frame
frame.shift(DOWN)
self.logo = Logo()
name = TextMobject("3Blue1Brown")
name.scale(2.5)
- name.next_to(logo, DOWN, buff=MED_LARGE_BUFF)
- self.name = name
+ name.next_to(self.logo, DOWN, buff=MED_LARGE_BUFF)
+ self.channel_name = name
def construct(self):
logo = self.logo
- name = self.name
+ name = self.channel_name
self.play(
Write(name, run_time=3, lag_factor=2.5),
@@ -266,6 +267,7 @@ class LogoGenerationTemplate(MovingCameraScene):
def get_logo_animations(self, logo):
return [] # For subclasses
+
class ExternallyAnimatedScene(Scene):
def construct(self):
raise Exception("Don't actually run this class.")