|
Gama C Library
Gama C API Documentation
|
Functions for animating values with various easing functions. More...
Go to the source code of this file.
Functions | |
| void | gm_anim_spring (double *value, double target, double t) |
| Moves a value towards a target with spring-like motion (exponential ease-out). | |
| void | gm_anim_ease_out_quad (double *value, const double target, double t) |
| Starts fast and decelerates quadratically to the target. More pronounced than spring. | |
| void | gm_anim_ease_out_cubic (double *value, double target, double t) |
| Starts very fast and decelerates cubically to the target. More pronounced than quad. | |
| void | gm_anim_ease_in_quad (double *value, double target, double t) |
| Starts slow and accelerates quadratically towards the target. | |
Functions for animating values with various easing functions.
General notes on animation functions:
| void gm_anim_ease_in_quad | ( | double * | value, |
| double | target, | ||
| double | t ) |
Starts slow and accelerates quadratically towards the target.
| value | A pointer to the double value to animate. |
| target | The target value to animate towards. |
| t | The animation's approximate duration. |
| void gm_anim_ease_out_cubic | ( | double * | value, |
| double | target, | ||
| double | t ) |
Starts very fast and decelerates cubically to the target. More pronounced than quad.
| value | A pointer to the double value to animate. |
| target | The target value to animate towards. |
| t | The animation's approximate duration. |
| void gm_anim_ease_out_quad | ( | double * | value, |
| const double | target, | ||
| double | t ) |
Starts fast and decelerates quadratically to the target. More pronounced than spring.
| value | A pointer to the double value to animate. |
| target | The target value to animate towards. |
| t | The animation's approximate duration. |
| void gm_anim_spring | ( | double * | value, |
| double | target, | ||
| double | t ) |
Moves a value towards a target with spring-like motion (exponential ease-out).
| value | A pointer to the double value to animate. |
| target | The target value to animate towards. |
| t | The animation's approximate duration. A smaller 't' results in a faster animation. |