diff options
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/gui/animations/EaseOutQuad.java')
-rw-r--r-- | src/main/java/cc/polyfrost/oneconfig/gui/animations/EaseOutQuad.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/gui/animations/EaseOutQuad.java b/src/main/java/cc/polyfrost/oneconfig/gui/animations/EaseOutQuad.java index 6cc97bf..8c7bff2 100644 --- a/src/main/java/cc/polyfrost/oneconfig/gui/animations/EaseOutQuad.java +++ b/src/main/java/cc/polyfrost/oneconfig/gui/animations/EaseOutQuad.java @@ -16,7 +16,7 @@ public class EaseOutQuad extends Animation { * Adapted from <a href="https://github.com/jesusgollonet/processing-penner-easing">https://github.com/jesusgollonet/processing-penner-easing</a> */ @Override - protected float animate(float timePassed, float duration, float start, float change) { - return -change * (timePassed /= duration) * (timePassed - 2) + start; + protected float animate(float x) { + return 1 - (1 - x) * (1 - x); } } |