mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
feat(Animation): add InQuint
This commit is contained in:
parent
cb85f8d49a
commit
788914ce8c
1 changed files with 27 additions and 0 deletions
27
Dalamud/Interface/Animation/EasingFunctions/InQuint.cs
Normal file
27
Dalamud/Interface/Animation/EasingFunctions/InQuint.cs
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
using System;
|
||||
|
||||
namespace Dalamud.Interface.Animation.EasingFunctions
|
||||
{
|
||||
/// <summary>
|
||||
/// Class providing an "InQuint" easing animation.
|
||||
/// </summary>
|
||||
public class InQuint : Easing
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="InQuint"/> class.
|
||||
/// </summary>
|
||||
/// <param name="duration">The duration of the animation.</param>
|
||||
public InQuint(TimeSpan duration)
|
||||
: base(duration)
|
||||
{
|
||||
// ignored
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override void Update()
|
||||
{
|
||||
var p = this.Progress;
|
||||
this.Value = p * p * p * p * p;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue