ThreeFilters of waves

This commit is contained in:
Grant Sanderson
2017-09-11 06:52:15 -07:00
parent 12dcb7a3ea
commit 86b9e629e0
5 changed files with 824 additions and 65 deletions

View File

@ -478,6 +478,14 @@ def there_and_back(t, inflection = 10.0):
new_t = 2*t if t < 0.5 else 2*(1 - t)
return smooth(new_t, inflection)
def there_and_back_with_pause(t):
if t < 1./3:
return smooth(3*t)
elif t < 2./3:
return 1
else:
return smooth(3 - 3*t)
def running_start(t, pull_factor = -0.5):
return bezier([0, 0, pull_factor, pull_factor, 1, 1, 1])(t)