ProteinMotion
Reference navigation
On this page

FUNCTION · v0.9.1

smooth

Apply quintic easing with zero endpoint speed and acceleration.

python
from proteinmotion import smooth

Signature

python
smooth(t)

Parameters

ParameterDefaultDescription
tRequiredAnimation progress in [0, 1].

Returns: float

Notes

Pass this function as rate_func to play() or an animation. Progress t is in [0, 1].