Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Change default color and bubble creation for teacher student scenes

Grant Sanderson3628b61d75d1
diff --git a/manimlib/for_3b1b_videos/pi_creature_animations.py b/manimlib/for_3b1b_videos/pi_creature_animations.py
index 40144bc5a..91df37739 100644
--- a/manimlib/for_3b1b_videos/pi_creature_animations.py
+++ b/manimlib/for_3b1b_videos/pi_creature_animations.py
@@ -1,7 +1,7 @@
from manimlib.animation.animation import Animation
from manimlib.animation.composition import AnimationGroup
from manimlib.animation.fading import FadeOut
-from manimlib.animation.creation import ShowCreation
+from manimlib.animation.creation import DrawBorderThenFill
from manimlib.animation.creation import Write
from manimlib.animation.transform import ApplyMethod
from manimlib.animation.transform import MoveToTarget
@@ -28,7 +28,7 @@ class PiCreatureBubbleIntroduction(AnimationGroup):
"target_mode": "speaking",
"bubble_class": SpeechBubble,
"change_mode_kwargs": {},
- "bubble_creation_class": ShowCreation,
+ "bubble_creation_class": DrawBorderThenFill,
"bubble_creation_kwargs": {},
"bubble_kwargs": {},
"content_introduction_class": Write,
diff --git a/manimlib/for_3b1b_videos/pi_creature_scene.py b/manimlib/for_3b1b_videos/pi_creature_scene.py
index d5ec6c094..def1216d7 100644
--- a/manimlib/for_3b1b_videos/pi_creature_scene.py
+++ b/manimlib/for_3b1b_videos/pi_creature_scene.py
@@ -254,6 +254,9 @@ class TeacherStudentsScene(PiCreatureScene):
"student_scale_factor": 0.8,
"seconds_to_blink": 2,
"screen_height": 3,
+ "camera_config": {
+ "background_color": DARKER_GREY,
+ },
}
def setup(self):