Files
manim/active_projects/eop/chapter1/what_does_probability_mean.py
2018-05-10 17:09:53 +02:00

46 lines
1.1 KiB
Python

from big_ol_pile_of_manim_imports import *
class WhatDoesItReallyMean(TeacherStudentsScene):
CONFIG = {
"default_pi_creature_kwargs": {
"color": MAROON_E,
"flip_at_start": True,
},
}
def construct(self):
student_q = TextMobject("What does", "``probability''", "\emph{actually}", "mean?")
student_q.set_color_by_tex("probability", YELLOW)
self.student_says(student_q, target_mode = "sassy")
self.wait()
self.play(
self.students[1].change_mode, "plain"
)
self.wait()
self.play(RemovePiCreatureBubble(self.students[1]))
self.wait()
self.teacher_says("Don't worry -- philosophy can come later!")
self.wait()
class EmptyTSScene(TeacherStudentsScene):
CONFIG = {
"default_pi_creature_kwargs": {
"color": MAROON_E,
"flip_at_start": True,
},
}
def construct(self):
self.wait()
self.play(*[
ApplyMethod(pi.look_at,ORIGIN) for pi in self.get_pi_creatures()
])
self.wait(8)