update_mobject -> interpolate_mobject for Animation, but not for ContinualAnimation

This commit is contained in:
Grant Sanderson
2019-02-08 11:57:27 -08:00
parent bf3d9c9b5a
commit 1c4ff6a556
30 changed files with 92 additions and 78 deletions

View File

@ -131,7 +131,7 @@ class FlipThroughNumbers(Animation):
mobject = TexMobject(str(self.current_number)).shift(start_center)
Animation.__init__(self, mobject, **kwargs)
def update_mobject(self, alpha):
def interpolate_mobject(self, alpha):
new_number = self.function(
self.start + int(alpha *(self.end-self.start))
)