Preliminary finish of chapter 7 animations

This commit is contained in:
Grant Sanderson
2016-08-22 21:22:21 -07:00
parent 3391e645d7
commit 87c390f41e
9 changed files with 339 additions and 89 deletions

View File

@ -304,10 +304,12 @@ class RandolphScene(Scene):
self.add(self.randy)
def dither(self, time = 1, blink = True):
if blink:
self.play(Blink(self.randy))
while time > 0:
if blink and time%2 == 1:
self.play(Blink(self.randy))
else:
Scene.dither(self, time)
time -= 1
Scene.dither(self, time)
return self
class TeacherStudentsScene(Scene):