Fixed ComplexHomotopy

This commit is contained in:
Grant Sanderson 2018-05-18 16:53:46 -07:00
parent 24c387e7cb
commit f28d58b2f0

View file

@ -41,11 +41,10 @@ class ComplexHomotopy(Homotopy):
"""
Complex Hootopy a function Cx[0, 1] to C
"""
def homotopy(event):
x, y, z, t = event
c = complex_homotopy((complex(x, y), t))
def homotopy(x, y, z, t):
c = complex_homotopy(complex(x, y), t)
return (c.real, c.imag, z)
Homotopy.__init__(self, homotopy, mobject, *args, **kwargs)
Homotopy.__init__(self, homotopy, mobject, **kwargs)
class PhaseFlow(Animation):