diff options
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/gui/animations/EaseInOutQuad.java')
-rw-r--r-- | src/main/java/cc/polyfrost/oneconfig/gui/animations/EaseInOutQuad.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/gui/animations/EaseInOutQuad.java b/src/main/java/cc/polyfrost/oneconfig/gui/animations/EaseInOutQuad.java index 14e802f..9af6557 100644 --- a/src/main/java/cc/polyfrost/oneconfig/gui/animations/EaseInOutQuad.java +++ b/src/main/java/cc/polyfrost/oneconfig/gui/animations/EaseInOutQuad.java @@ -16,7 +16,7 @@ public class EaseInOutQuad 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(long timePassed, int duration, float start, float change) { + protected float animate(float timePassed, float duration, float start, float change) { if ((timePassed /= duration / 2) < 1) return change / 2 * timePassed * timePassed + start;; return -change / 2 * ((--timePassed) * (timePassed - 2) - 1) + start; } |