mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Add inflection parameter to rush_into and rush_from
This commit is contained in:
parent
eb355fc7a1
commit
3aadc1fb78
1 changed files with 4 additions and 4 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue