diff options
author | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2023-01-17 09:44:34 -0500 |
---|---|---|
committer | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2023-01-17 09:44:34 -0500 |
commit | 5822703b7d770ec67a4c4ca00192006b8f0cb9b9 (patch) | |
tree | 7ded70762db28ec2321ce25bd20d3313a26c52df /src/main/kotlin/cc/woverflow/chatting/utils | |
parent | 6120b123648f2ccf7a5d5efea1a5c3600a725196 (diff) | |
download | Chatting-5822703b7d770ec67a4c4ca00192006b8f0cb9b9.tar.gz Chatting-5822703b7d770ec67a4c4ca00192006b8f0cb9b9.tar.bz2 Chatting-5822703b7d770ec67a4c4ca00192006b8f0cb9b9.zip |
smooth messages / scrolling animation speed
fix sending messages (again lol)
Diffstat (limited to 'src/main/kotlin/cc/woverflow/chatting/utils')
-rw-r--r-- | src/main/kotlin/cc/woverflow/chatting/utils/EaseOutQuart.kt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/kotlin/cc/woverflow/chatting/utils/EaseOutQuart.kt b/src/main/kotlin/cc/woverflow/chatting/utils/EaseOutQuart.kt new file mode 100644 index 0000000..7943b4d --- /dev/null +++ b/src/main/kotlin/cc/woverflow/chatting/utils/EaseOutQuart.kt @@ -0,0 +1,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 +}
\ No newline at end of file |