@@ -15,36 +15,42 @@ int main() {
1515 .type = CF::TransformType::OFFSET,
1616 .transform = {200 , 0 , 0 , 0 },
1717 .easing_frames = 60 ,
18- .held_frames = 10
18+ .held_frames = 0
1919 },
2020 {
2121 .type = CF::TransformType::OFFSET,
2222 .transform = {-100 , -200 , 0 , 0 },
2323 .easing_frames = 60 ,
24- .held_frames = 10
24+ .held_frames = 0
2525 },
2626 {
2727 .type = CF::TransformType::OFFSET,
2828 .transform = {-100 , 200 , 0 , 0 },
2929 .easing_frames = 60 ,
30- .held_frames = 10
30+ .held_frames = 0
3131 }
3232 };
3333
3434 std::vector<CF::Keyframe<Color>> color_keyframes = {
3535 {
36- .type = CF::TransformType::OFFSET,
37- .transform = {-255 , 255 , 0 , 0 },
36+ .type = CF::TransformType::TO,
37+ .transform = {0 , 255 , 0 , 255 },
38+ .easing_frames = 60 ,
39+ .held_frames = 0
3840
3941 },
4042 {
41- .type = CF::TransformType::OFFSET,
42- .transform = {0 , -255 , 255 , 0 },
43+ .type = CF::TransformType::TO,
44+ .transform = {0 , 0 , 255 , 255 },
45+ .easing_frames = 60 ,
46+ .held_frames = 0
4347
4448 },
4549 {
46- .type = CF::TransformType::OFFSET,
47- .transform = {255 , 0 , -255 , 0 },
50+ .type = CF::TransformType::TO,
51+ .transform = {255 , 0 , 0 , 255 },
52+ .easing_frames = 60 ,
53+ .held_frames = 0
4854
4955 }
5056 };
@@ -53,15 +59,22 @@ int main() {
5359 {
5460 .type = CF::TransformType::OFFSET,
5561 .transform = {1 .0f },
56- .easing_frames = 120
62+ .easing_frames = 60 ,
63+ .held_frames = 0
64+ },
65+ {
66+ .type = CF::TransformType::OFFSET,
67+ .transform = {-1.0 },
68+ .easing_frames = 60 ,
69+ .held_frames = 0
5770 }
5871 };
5972
60- CF::Animation<float > roundness = {0 .0f , roundness_keyframes, CF::PlayMode::BOOMERANG_LOOP , CF::EasingFunction::QUADRATIC_IN_OUT };
73+ CF::Animation<float > roundness = {0 .0f , roundness_keyframes, CF::PlayMode::LOOP , CF::EasingFunction::CUBIC_OUT };
6174
62- CF::Animation<Rectangle> rectangle = {{200 , 250 , 60 , 60 }, rectangle_keyframes, CF::PlayMode::LOOP, CF::EasingFunction::QUADRATIC_IN_OUT };
75+ CF::Animation<Rectangle> rectangle = {{200 , 250 , 60 , 60 }, rectangle_keyframes, CF::PlayMode::LOOP, CF::EasingFunction::CUBIC_OUT };
6376
64- CF::Animation<Color> color = {{255 , 0 , 0 , 255 }, color_keyframes, CF::PlayMode::BOOMERANG_LOOP , CF::EasingFunction::CUBIC_IN_OUT };
77+ CF::Animation<Color> color = {{255 , 0 , 0 , 255 }, color_keyframes, CF::PlayMode::LOOP , CF::EasingFunction::CUBIC_OUT };
6578
6679 while (!WindowShouldClose ()) {
6780
0 commit comments