From 788914ce8c4ae753c23f0a0ac3bbc2b2520b1832 Mon Sep 17 00:00:00 2001
From: goat <16760685+goaaats@users.noreply.github.com>
Date: Sun, 18 Jul 2021 22:57:05 +0200
Subject: [PATCH] feat(Animation): add InQuint
---
.../Animation/EasingFunctions/InQuint.cs | 27 +++++++++++++++++++
1 file changed, 27 insertions(+)
create mode 100644 Dalamud/Interface/Animation/EasingFunctions/InQuint.cs
diff --git a/Dalamud/Interface/Animation/EasingFunctions/InQuint.cs b/Dalamud/Interface/Animation/EasingFunctions/InQuint.cs
new file mode 100644
index 000000000..42604f136
--- /dev/null
+++ b/Dalamud/Interface/Animation/EasingFunctions/InQuint.cs
@@ -0,0 +1,27 @@
+using System;
+
+namespace Dalamud.Interface.Animation.EasingFunctions
+{
+ ///
+ /// Class providing an "InQuint" easing animation.
+ ///
+ public class InQuint : Easing
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The duration of the animation.
+ public InQuint(TimeSpan duration)
+ : base(duration)
+ {
+ // ignored
+ }
+
+ ///
+ public override void Update()
+ {
+ var p = this.Progress;
+ this.Value = p * p * p * p * p;
+ }
+ }
+}