Skip to content

sonolus.script.easing

For more information on easing functions, see easings.net.

ease_in_back(x)

Interpolate between 0 and 1, starting slow and ending fast, overshooting below 0 at the start.

ease_in_circ(x)

Interpolate between 0 and 1, starting slow and ending very fast.

ease_in_cubic(x)

Interpolate between 0 and 1, starting slow and ending fast with cubic easing.

ease_in_elastic(x)

Interpolate between 0 and 1 with oscillations, starting slow and ending fast.

ease_in_expo(x)

Interpolate between 0 and 1, starting extremely slow and ending extremely fast.

ease_in_out_back(x)

Interpolate between 0 and 1, starting and ending slow with overshooting, fast in the middle.

ease_in_out_circ(x)

Interpolate between 0 and 1, starting and ending slow, very fast in the middle.

ease_in_out_cubic(x)

Interpolate between 0 and 1, starting and ending slow with cubic easing, fast in the middle.

ease_in_out_elastic(x)

Interpolate between 0 and 1 with oscillations, slow at the start and end, fast in the middle.

ease_in_out_expo(x)

Interpolate between 0 and 1, starting and ending extremely slow, fast in the middle.

ease_in_out_quad(x)

Interpolate between 0 and 1, starting and ending slow with quadratic easing, fast in the middle.

ease_in_out_quart(x)

Interpolate between 0 and 1, starting and ending very slow with quartic easing, very fast in the middle.

ease_in_out_quint(x)

Interpolate between 0 and 1, starting and ending extremely slow with quintic easing, extremely fast in the middle.

ease_in_out_sine(x)

Interpolate between 0 and 1, starting and ending slow with sine easing, fast in the middle.

ease_in_quad(x)

Interpolate between 0 and 1, starting slow and ending fast with quadratic easing.

ease_in_quart(x)

Interpolate between 0 and 1, starting very slow and ending very fast with quartic easing.

ease_in_quint(x)

Interpolate between 0 and 1, starting extremely slow and ending extremely fast with quintic easing.

ease_in_sine(x)

Interpolate between 0 and 1, starting slow and ending fast with sine easing.

ease_out_back(x)

Interpolate between 0 and 1, starting fast and ending slow, overshooting above 1 at the end.

ease_out_circ(x)

Interpolate between 0 and 1, starting very fast and ending slow.

ease_out_cubic(x)

Interpolate between 0 and 1, starting fast and ending slow with cubic easing.

ease_out_elastic(x)

Interpolate between 0 and 1 with oscillations, starting fast and ending slow.

ease_out_expo(x)

Interpolate between 0 and 1, starting extremely fast and ending extremely slow.

ease_out_in_back(x)

Interpolate between 0 and 1, fast at the start and end, slow in the middle with overshooting.

ease_out_in_circ(x)

Interpolate between 0 and 1, very fast at the start and end, slow in the middle.

ease_out_in_cubic(x)

Interpolate between 0 and 1, fast at the start and end, slow in the middle with cubic easing.

ease_out_in_elastic(x)

Interpolate between 0 and 1 with oscillations, fast at the start and end, slow in the middle.

ease_out_in_expo(x)

Interpolate between 0 and 1, extremely fast at the start and end, extremely slow in the middle.

ease_out_in_quad(x)

Interpolate between 0 and 1, fast at the start and end, slow in the middle with quadratic easing.

ease_out_in_quart(x)

Interpolate between 0 and 1, very fast at the start and end, very slow in the middle with quartic easing.

ease_out_in_quint(x)

Interpolate between 0 and 1, extremely fast at the start and end, extremely slow in the middle with quintic easing.

ease_out_in_sine(x)

Interpolate between 0 and 1, fast at the start and end, slow in the middle with sine easing.

ease_out_quad(x)

Interpolate between 0 and 1, starting fast and ending slow with quadratic easing.

ease_out_quart(x)

Interpolate between 0 and 1, starting very fast and ending very slow with quartic easing.

ease_out_quint(x)

Interpolate between 0 and 1, starting extremely fast and ending extremely slow with quintic easing.

ease_out_sine(x)

Interpolate between 0 and 1, starting fast and ending slow with sine easing.

linstep(x)

Linear interpolation between 0 and 1.

smootherstep(x)

Interpolate between 0 and 1 using smootherstep.

smoothstep(x)

Interpolate between 0 and 1 using smoothstep.

step_end(x)

Step function returning 1.0 if x >= 1, otherwise 0.0.

step_start(x)

Step function returning 1.0 if x > 0, otherwise 0.0.