mirror of
https://github.com/3b1b/manim.git
synced 2025-08-02 19:46:21 +08:00
Add inflection parameter to rush_into and rush_from
This commit is contained in:
@ -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):
|
||||
|
Reference in New Issue
Block a user