From f28d58b2f0bac24d6e8c265b2ca1fff824c887df Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Fri, 18 May 2018 16:53:46 -0700 Subject: [PATCH] Fixed ComplexHomotopy --- animation/movement.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/animation/movement.py b/animation/movement.py index 1045532a..c478ab0f 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):