Up to showing recursive algorithm in Hanoi

This commit is contained in:
Grant Sanderson
2016-11-17 17:28:58 -08:00
parent 4378aac88b
commit 8f06c9db1c
3 changed files with 667 additions and 33 deletions

View File

@ -258,10 +258,6 @@ class Succession(Animation):
self.last_index = 0
Animation.__init__(self, mobject, run_time = run_time, **kwargs)
def __str__(self):
return self.__class__.__name__ + \
"".join(map(str, self.anims))
def update_mobject(self, alpha):
scaled_alpha = alpha*self.num_anims
index = min(int(scaled_alpha), len(self.anims)-1)