mirror of
https://github.com/3b1b/manim.git
synced 2025-08-01 17:29:06 +08:00
Up to physics example in eola chapter 0
This commit is contained in:
@ -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):
|
||||
"""
|
||||
|
Reference in New Issue
Block a user