easings

Rate functions: the easing curves animations are played through.

A rate function maps a normalized time t in [0, 1] to a normalized progress, also usually in [0, 1]. Every animation context takes one as easing, and it decides the feel of a movement without changing its runtime or its endpoints.

smooth is the default: it eases in and out, so things start and stop gently. identity (and its alias linear) is constant speed, which is what camera moves and anything mechanical usually want. The standard Penner easing families (sine, quad, cubic, quart, quint, expo, circ, back, elastic, bounce) provide fine-grained control over acceleration and deceleration.

A rate function is just a callable on tensors, so writing your own is a one-liner. See Combining Animations.

Functions

delay_fade(t)[source]

Fast initial rise followed by parabolic settling.

ease_in_back(t, s=1.70158)[source]
ease_in_bounce(t)[source]
ease_in_circ(t)[source]
ease_in_cubic(t)[source]
ease_in_elastic(t)[source]
ease_in_expo(t)[source]
Parameters:

t (float)

Return type:

float

ease_in_out_back(t, s=1.70158)[source]
ease_in_out_bounce(t)[source]
ease_in_out_circ(t)[source]
ease_in_out_cubic(t)[source]
ease_in_out_elastic(t)[source]
ease_in_out_quad(t)[source]
ease_in_out_quart(t)[source]
ease_in_out_quint(t)[source]
ease_in_out_sine(t)[source]
ease_in_quad(t)[source]
ease_in_quart(t)[source]
ease_in_quint(t)[source]
ease_in_sine(t)[source]
ease_out_back(t, s=1.70158)[source]
ease_out_bounce(t)[source]
ease_out_circ(t)[source]
ease_out_cubic(t)[source]
ease_out_elastic(t)[source]
ease_out_exp(t, scale=4)[source]
ease_out_exp_square(t)[source]
ease_out_expo(t)[source]
Parameters:

t (float)

Return type:

float

ease_out_quad(t)[source]
ease_out_quart(t)[source]
ease_out_quint(t)[source]
ease_out_quintic(t)[source]
ease_out_sine(t)[source]
identity(t)[source]

Linear progression with constant rate of change.

inversed(f)[source]

Reverses an easing function.

linear(t)

Linear progression with constant rate of change.

pulse_fade(t)[source]

Linear blend with rapid initial ramp.

rush_from(t)
rush_into(t)
slow_into(t)
smooth(t, inflection=10.0)[source]
tan(t, scale=10)[source]