Animations now have an easing/ease_rate setting that will do a dynamic scaling effect on them during the animation sequence.

This commit is contained in:
Zed A. Shaw 2025-03-01 00:24:19 -05:00
parent 6e363ba78d
commit 033358749f
8 changed files with 42 additions and 14 deletions

View file

@ -3,6 +3,10 @@
namespace ease {
enum Style {
SINE, OUT_CIRC, OUT_BOUNCE, IN_OUT_BACK, NONE
};
inline double sine(double x) {
return (std::sin(x) + 1.0) / 2.0;
}