aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/org/polyfrost/chatting/utils/EaseOutQuart.kt
blob: 4b6b7a5834202f8c60028be928bbd3274663f47d (plain)
1
2
3
4
5
6
7
package org.polyfrost.chatting.utils

import cc.polyfrost.oneconfig.gui.animations.Animation

class EaseOutQuart(duration: Float, start: Float, end: Float, reverse: Boolean) : Animation(duration, start, end, reverse) {
    override fun animate(x: Float) = -1 * (x - 1) * (x - 1) * (x - 1) * (x - 1) + 1
}