gale.ease_functions module
This file contains easing functions (linear, sine, quad, cubic, quart, quint, expo, circ, back, elastic, bounce, each with an in/out/in_out variant) mapping a normalized time t in [0, 1] to an eased progress value, and the EASE_FUNCTIONS registry gale.timer.Timer picks them from by name.
Author: Alejandro Mujica (aledrums@gmail.com)
- gale.ease_functions.ease_linear(t)[source]
Linear interpolation function. This function does not interpolate the value.
- Parameters:
t (float)
- Return type:
float
- gale.ease_functions.ease_in_sine(t)[source]
Ease in function using the sine function. This function starts slow and then accelerates.
- Parameters:
t (float)
- Return type:
float
- gale.ease_functions.ease_out_sine(t)[source]
Ease out function using the sine function. This function starts fast and then decelerates.
- Parameters:
t (float)
- Return type:
float
- gale.ease_functions.ease_in_out_sine(t)[source]
Ease in out function using the sine function. This function starts slow, then accelerates, and finally decelerates.
- Parameters:
t (float)
- Return type:
float
- gale.ease_functions.ease_in_quad(t)[source]
Ease in function using the quadratic function. This function starts slow and then accelerates.
- Parameters:
t (float)
- Return type:
float
- gale.ease_functions.ease_out_quad(t)[source]
Ease out function using the quadratic function. This function starts fast and then decelerates.
- Parameters:
t (float)
- Return type:
float
- gale.ease_functions.ease_in_out_quad(t)[source]
Ease in out function using the quadratic function. This function starts slow, then accelerates, and finally decelerates.
- Parameters:
t (float)
- Return type:
float
- gale.ease_functions.ease_in_cubic(t)[source]
Ease in function using the cubic function. This function starts slow and then accelerates.
- Parameters:
t (float)
- Return type:
float
- gale.ease_functions.ease_out_cubic(t)[source]
Ease out function using the cubic function. This function starts fast and then decelerates.
- Parameters:
t (float)
- Return type:
float
- gale.ease_functions.ease_in_out_cubic(t)[source]
Ease in out function using the cubic function. This function starts slow, then accelerates, and finally decelerates.
- Parameters:
t (float)
- Return type:
float
- gale.ease_functions.ease_in_quart(t)[source]
Ease in function using the quartic function. This function starts slow and then accelerates.
- Parameters:
t (float)
- Return type:
float
- gale.ease_functions.ease_out_quart(t)[source]
Ease out function using the quartic function. This function starts fast and then decelerates.
- Parameters:
t (float)
- Return type:
float
- gale.ease_functions.ease_in_out_quart(t)[source]
Ease in out function using the quartic function. This function starts slow, then accelerates, and finally decelerates.
- Parameters:
t (float)
- Return type:
float
- gale.ease_functions.ease_in_quint(t)[source]
Ease in function using the quintic function. This function starts slow and then accelerates.
- Parameters:
t (float)
- Return type:
float
- gale.ease_functions.ease_out_quint(t)[source]
Ease out function using the quintic function. This function starts fast and then decelerates.
- Parameters:
t (float)
- Return type:
float
- gale.ease_functions.ease_in_out_quint(t)[source]
Ease in out function using the quintic function. This function starts slow, then accelerates, and finally decelerates.
- Parameters:
t (float)
- Return type:
float
- gale.ease_functions.ease_in_expo(t)[source]
Ease in function using the exponential function. This function starts slow and then accelerates.
- Parameters:
t (float)
- Return type:
float
- gale.ease_functions.ease_out_expo(t)[source]
Ease out function using the exponential function. This function starts fast and then decelerates.
- Parameters:
t (float)
- Return type:
float
- gale.ease_functions.ease_in_out_expo(t)[source]
Ease in out function using the exponential function. This function starts slow, then accelerates, and finally decelerates.
- Parameters:
t (float)
- Return type:
float
- gale.ease_functions.ease_in_circ(t)[source]
Ease in function using the circular function. This function starts slow and then accelerates.
- Parameters:
t (float)
- Return type:
float
- gale.ease_functions.ease_out_circ(t)[source]
Ease out function using the circular function. This function starts fast and then decelerates.
- Parameters:
t (float)
- Return type:
float
- gale.ease_functions.ease_in_out_circ(t)[source]
Ease in out function using the circular function. This function starts slow, then accelerates, and finally decelerates.
- Parameters:
t (float)
- Return type:
float
- gale.ease_functions.ease_in_back(t)[source]
Ease in function using the back function. This function starts slow and then accelerates.
- Parameters:
t (float)
- Return type:
float
- gale.ease_functions.ease_out_back(t)[source]
Ease out function using the back function. This function starts fast and then decelerates.
- Parameters:
t (float)
- Return type:
float
- gale.ease_functions.ease_in_out_back(t)[source]
Ease in out function using the back function. This function starts slow, then accelerates, and finally decelerates.
- Parameters:
t (float)
- Return type:
float
- gale.ease_functions.ease_in_elastic(t)[source]
Ease in function using the elastic function. This function starts slow and then accelerates.
- Parameters:
t (float)
- Return type:
float
- gale.ease_functions.ease_out_elastic(t)[source]
Ease out function using the elastic function. This function starts fast and then decelerates.
- Parameters:
t (float)
- Return type:
float
- gale.ease_functions.ease_in_out_elastic(t)[source]
Ease in out function using the elastic function. This function starts slow, then accelerates, and finally decelerates.
- Parameters:
t (float)
- Return type:
float
- gale.ease_functions.ease_in_bounce(t)[source]
Ease in function using the bounce function. This function starts slow and then accelerates.
- Parameters:
t (float)
- Return type:
float