A bit more into chapter 9

This commit is contained in:
Grant Sanderson
2016-09-07 22:04:24 -07:00
parent a58afe13e8
commit 37e4026e8f
6 changed files with 511 additions and 23 deletions

View File

@ -102,6 +102,9 @@ class MoveAlongPath(Animation):
)
class Homotopy(Animation):
CONFIG = {
"run_time" : 3
}
def __init__(self, homotopy, mobject, **kwargs):
"""
Homotopy a function from (x, y, z, t) to (x', y', z')
@ -114,10 +117,11 @@ class Homotopy(Animation):
def update_submobject(self, submob, start, alpha):
submob.points = start.points
submob.apply_function(self.function_at_time_t(alpha))
def update_mobject(self, alpha):
Animation.update_mobject(self, alpha)
submob.apply_function(self.function_at_time_t(alpha))
class PhaseFlow(Animation):