ProteinMotion
Reference navigation

MODULE · v0.9.1

Rate functions

proteinmotion.rates

Map animation progress to eased progress.

Guide and rendered examples →
python
from proteinmotion import rates\n\nself.play(animation, run_time=2, rate_func=rates.smooth)

Functions

NameDescription
linear()functionReturn progress unchanged.
smooth()functionApply quintic easing with zero endpoint speed and acceleration.
ease_in_out_sine()functionApply sinusoidal easing that starts and ends slowly.
there_and_back()functionMove smoothly from 0 to 1 and back to 0 over one clip.
View module source