The maximum value returned by getValue() > getMax()
Opened this issue · 2 comments
12345chinazz commented
The maximum value returned by getValue() != getMax()
MrMasrozYTLIVE commented
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)
MrMasrozYTLIVE commented
Done in #3