File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 1717 * CodeStyle: https://github.com/scottcgi/Mojoc/blob/master/Docs/CodeStyle.md
1818 *
1919 * Since : 2013-11-5
20- * Update : 2019-1-17
20+ * Update : 2021-8-16
2121 * Author : scott.cgi
2222 */
2323
@@ -32,6 +32,13 @@ static float Linear(float time)
3232}
3333
3434
35+ static float Smooth (float time )
36+ {
37+ ALog_E ("Smooth" );
38+ return time * time * (3.0f - 2.0f * time );
39+ }
40+
41+
3542//----------------------------------------------------------------------------------------------------------------------
3643
3744
@@ -448,6 +455,7 @@ static float BounceInOut(float time)
448455struct ATweenEase ATweenEase [1 ] =
449456{{
450457 Linear ,
458+ Smooth ,
451459
452460 QuadraticIn ,
453461 QuadraticOut ,
Original file line number Diff line number Diff line change 1717 * CodeStyle: https://github.com/scottcgi/Mojoc/blob/master/Docs/CodeStyle.md
1818 *
1919 * Since : 2013-11-5
20- * Update : 2019-12-19
20+ * Update : 2021-8-16
2121 * Author : scott.cgi
2222 */
2323
2929typedef enum
3030{
3131 TweenEaseType_Linear ,
32+ TweenEaseType_Smooth ,
3233
3334 TweenEaseType_QuadraticIn ,
3435 TweenEaseType_QuadraticOut ,
You can’t perform that action at this time.
0 commit comments