Up to physics example in eola chapter 0

This commit is contained in:
Grant Sanderson
2016-07-12 15:16:20 -07:00
parent c910b00a32
commit d35a8f76ac
9 changed files with 425 additions and 64 deletions

View File

@ -114,6 +114,17 @@ class Flash(Animation):
alpha
)
class MoveAlongPath(Animation):
def __init__(self, mobject, vmobject, **kwargs):
digest_config(self, kwargs, locals())
Animation.__init__(self, mobject, **kwargs)
def update_mobject(self, alpha):
self.mobject.shift(
self.vmobject.point_from_proportion(alpha) - \
self.mobject.get_center()
)
class Homotopy(Animation):
def __init__(self, homotopy, mobject, **kwargs):
"""