From 3628b61d75d18de21ac1f5bb711d3e594cd67f0a Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Tue, 10 Dec 2019 13:38:18 -0800 Subject: [PATCH] Change default color and bubble creation for teacher student scenes --- manimlib/for_3b1b_videos/pi_creature_animations.py | 4 ++-- manimlib/for_3b1b_videos/pi_creature_scene.py | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/manimlib/for_3b1b_videos/pi_creature_animations.py b/manimlib/for_3b1b_videos/pi_creature_animations.py index 40144bc5..91df3773 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 d5ec6c09..def1216d 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):