diff --git a/manimlib/utils/bezier.py b/manimlib/utils/bezier.py index c6b750e1..75f6c668 100644 --- a/manimlib/utils/bezier.py +++ b/manimlib/utils/bezier.py @@ -14,10 +14,10 @@ def bezier(points): n = len(points) - 1 def result(t): - return sum([ + return sum( ((1 - t)**(n - k)) * (t**k) * choose(n, k) * point for k, point in enumerate(points) - ]) + ) return result