Skip to content

Instantly share code, notes, and snippets.

@jonobr1
Last active February 5, 2016 19:41
Show Gist options
  • Save jonobr1/c22a0d123cce181cef93 to your computer and use it in GitHub Desktop.
Save jonobr1/c22a0d123cce181cef93 to your computer and use it in GitHub Desktop.
Seat easing for tween.js
TWEEN.Easing.Seat = {
In: function(t) {
return Math.pow(t - 1, 3) + 1;
},
Out: function(t) {
return Math.pow(t, 3);
},
InOut: function(t) {
return (Math.pow(2 * t - 1, 3) + 1) / 2;
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment