aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/cc/woverflow/chatting/utils/EaseOutQuart.kt
blob: 7943b4de4f0b3ecc5ec6f5812d744b14a9181228 (plain)
1
2
3
4
5
6
7
package cc.woverflow.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
}