LaVache-FR/AnimationUtil

The maximum value returned by getValue() > getMax()

Opened this issue · 2 comments

The maximum value returned by getValue() != getMax()

eh i know i'm a bit late
But it should be easy.
In https://github.com/LaVache-FR/AnimationUtil/blob/main/fr/lavache/anime/Animate.java#L27 instead of this.value = getEase().ease(time, min, max, max); we should use this.value = (getEase().ease(time, min, max, max) > this.max) ? this.max : getEase().ease(time, min, max, max); (Ik can be optimized by doing only 1 getEase().ease(time, min, max, max) but its just example)

Done in #3