From 8b373f577d9c6dde26357ef3fc86691f1efef9b4 Mon Sep 17 00:00:00 2001 From: Wyvest Date: Wed, 22 Nov 2023 08:18:19 +0900 Subject: update PGT and relocate to org.polyfrost --- src/main/kotlin/org/polyfrost/chatting/utils/EaseOutQuart.kt | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/main/kotlin/org/polyfrost/chatting/utils/EaseOutQuart.kt (limited to 'src/main/kotlin/org/polyfrost/chatting/utils/EaseOutQuart.kt') diff --git a/src/main/kotlin/org/polyfrost/chatting/utils/EaseOutQuart.kt b/src/main/kotlin/org/polyfrost/chatting/utils/EaseOutQuart.kt new file mode 100644 index 0000000..4b6b7a5 --- /dev/null +++ b/src/main/kotlin/org/polyfrost/chatting/utils/EaseOutQuart.kt @@ -0,0 +1,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 +} \ No newline at end of file -- cgit