Camera is now using animate2 but isn't actually using it yet. Just converted.

This commit is contained in:
Zed A. Shaw 2026-02-17 00:55:41 -05:00
parent 7bf7b25a10
commit 46cc21ec7b
8 changed files with 111 additions and 90 deletions

View file

@ -12,6 +12,10 @@ namespace ease2 {
return 0.0;
}
double linear(float tick) {
return tick;
}
double sine(double x) {
// old one? return std::abs(std::sin(seq.subframe * ease_rate));
return (std::sin(x) + 1.0) / 2.0;
@ -107,6 +111,7 @@ namespace ease2 {
{"random", random},
{"normal_dist", normal_dist},
{"none", none},
{"linear", linear},
};
std::unordered_map<std::string, MotionFunc> map_of_motions{