From 05eca49a52c5d17d9adbcaa75e2f7ce6f906baac Mon Sep 17 00:00:00 2001 From: Mikko Haapoja Date: Thu, 12 Nov 2015 19:49:45 -0500 Subject: [PATCH] Fixed back-out Did some expert copy and pasting from https://github.com/stackgl/glsl-easings/blob/master/back-out.glsl --- back-out.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/back-out.js b/back-out.js index 5484466..b2d9846 100644 --- a/back-out.js +++ b/back-out.js @@ -1,6 +1,6 @@ function backOut(t) { - var s = 1.70158 - return --t * t * ((s + 1) * t + s) + 1 + var f = 1 - t; + return 1 - (Math.pow(f, 3) - f * Math.sin(f * Math.PI)) } -module.exports = backOut \ No newline at end of file +module.exports = backOut