mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Merge pull request #2134 from jkjkil4/fix-there_and_back_with_pause
fix: `there_and_back_with_pause`
This commit is contained in:
commit
a5137a05f1
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue