From df6aae36a6893fd92d29b9215926ea5fae7b13af Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Thu, 15 Feb 2018 23:00:18 -0800 Subject: [PATCH] Uncertainty progress --- active_projects/uncertainty.py | 42 +++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/active_projects/uncertainty.py b/active_projects/uncertainty.py index 1c3f27c4..d7b316f4 100644 --- a/active_projects/uncertainty.py +++ b/active_projects/uncertainty.py @@ -1639,7 +1639,47 @@ class CleanerFourierTradeoff(FourierTradeoff): "complex_to_real_func" : lambda z : z.real, } - +class MentionDopplerRadar(TeacherStudentsScene): + def construct(self): + words = TextMobject("Doppler Radar") + words.next_to(self.teacher, UP) + words.save_state() + words.shift(DOWN).fade(1) + dish = RadarDish() + dish.next_to(self.students, UP, buff = 2, aligned_edge = LEFT) + plane = Plane() + plane.to_edge(RIGHT) + plane.align_to(dish) + plane_flight = AmbientMovement( + plane, + direction = LEFT, + rate = 1, + ) + plane.flip() + pulse = RadarPulse(dish, plane) + look_at_anims = [ + ContinualUpdateFromFunc( + pi, lambda pi : pi.look_at(pulse.mobject) + ) + for pi in self.get_pi_creatures() + ] + + self.add(dish, plane_flight, pulse, *look_at_anims) + self.play( + self.teacher.change, "hooray", + words.restore + ) + self.change_student_modes("pondering", "erm", "sassy") + self.wait(4) + self.play( + self.teacher.change, "happy", + self.get_student_changes(*["thinking"]*3) + ) + dish.set_stroke(width = 0) + self.play(UpdateFromAlphaFunc( + VGroup(plane, dish), + lambda m, a : m.set_fill(opacity = 1 - a) + ))