Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Fixed ComplexHomotopy

Grant Sandersonf28d58b2f0ba
diff --git a/animation/movement.py b/animation/movement.py
index 1045532a2..c478ab0f4 100644
--- a/animation/movement.py
+++ b/animation/movement.py
@@ -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):