Reference navigation
MODULE · v0.9.1
Rate functions
proteinmotion.rates
Map animation progress to eased progress.
Guide and rendered examples →from proteinmotion import rates\n\nself.play(animation, run_time=2, rate_func=rates.smooth)Functions
| Name | Description |
|---|---|
| linear()function | Return progress unchanged. |
| smooth()function | Apply quintic easing with zero endpoint speed and acceleration. |
| ease_in_out_sine()function | Apply sinusoidal easing that starts and ends slowly. |
| there_and_back()function | Move smoothly from 0 to 1 and back to 0 over one clip. |