mirror of
https://github.com/3b1b/manim.git
synced 2025-08-01 08:54:38 +08:00
Preliminary finish of chapter 7 animations
This commit is contained in:
@ -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):
|
||||
|
Reference in New Issue
Block a user