From ab28804ae5776d480e88fb38c11593919aeee6fb Mon Sep 17 00:00:00 2001 From: jkjkil4 <1173374788@qq.com> Date: Wed, 22 May 2024 16:37:07 +0800 Subject: [PATCH] fix: `there_and_back_with_pause` --- manimlib/utils/rate_functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manimlib/utils/rate_functions.py b/manimlib/utils/rate_functions.py index 9b156f93..672e5f30 100644 --- a/manimlib/utils/rate_functions.py +++ b/manimlib/utils/rate_functions.py @@ -46,7 +46,7 @@ def there_and_back(t: float) -> float: def there_and_back_with_pause(t: float, pause_ratio: float = 1. / 3) -> float: - a = 1. / pause_ratio + a = 2. / (1. - pause_ratio) if t < 0.5 - pause_ratio / 2: return smooth(a * t) elif t < 0.5 + pause_ratio / 2: