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:
parent
6e363ba78d
commit
033358749f
8 changed files with 42 additions and 14 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue