Skip to content

Commit

Permalink
UPD better ease in/out
Browse files Browse the repository at this point in the history
  • Loading branch information
deepnight committed Jan 21, 2025
1 parent 6227551 commit d261698
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dn/TinyTween.hx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class TinyTween {
case Linear: elapsedS/durationS;
case EaseIn: M.bezier4( elapsedS/durationS, 0, 0, 0.5, 1 );
case EaseOut: M.bezier4( elapsedS/durationS, 0, 0.5, 1, 1 );
case EaseInOut: M.bezier4( elapsedS/durationS, 0, 0, 1, 1 );
case EaseInOut: M.bezierFull4( elapsedS/durationS, 0, 0.5, 0.5, 1, 0, 0, 1, 1 );
case BackForth: M.bezier4( elapsedS/durationS, 0, 1+1/3, 1+1/3, 0 );
}
return fromValue + ( toValue - fromValue ) * ratio;
Expand Down

0 comments on commit d261698

Please sign in to comment.