ease_in_out_sine#

data_morph.plotting.animation.ease_in_out_sine(step: int | float) float[source]#

An ease-in and ease-out sinusoidal function to generate animation steps (slow to fast to slow).

Parameters:

step (int or float) – The current step of the animation, from 0 to 1.

Returns:

The eased value at the current step, from 0.0 to 1.0.

Return type:

float