From 3aadc1fb78101e0a9ee92d8f6e9dd47c2d080a8d Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Mon, 28 Jan 2019 10:24:55 -0800 Subject: [PATCH] Add inflection parameter to rush_into and rush_from --- manimlib/utils/rate_functions.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/manimlib/utils/rate_functions.py b/manimlib/utils/rate_functions.py index fbbe7f5e..39f9cd15 100644 --- a/manimlib/utils/rate_functions.py +++ b/manimlib/utils/rate_functions.py @@ -16,12 +16,12 @@ def smooth(t, inflection=10.0): ) -def rush_into(t): - return 2 * smooth(t / 2.0) +def rush_into(t, inflection=10.0): + return 2 * smooth(t / 2.0, inflection) -def rush_from(t): - return 2 * smooth(t / 2.0 + 0.5) - 1 +def rush_from(t, inflection=10.0): + return 2 * smooth(t / 2.0 + 0.5, inflection) - 1 def slow_into(t):