Add inflection parameter to rush_into and rush_from

This commit is contained in:
Grant Sanderson
2019-01-28 10:24:55 -08:00
parent eb355fc7a1
commit 3aadc1fb78

View File

@ -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):