diff --git a/src/Artemis.Core/Utilities/Easings.cs b/src/Artemis.Core/Utilities/Easings.cs index 3bffa45ed..5bcc4cb90 100644 --- a/src/Artemis.Core/Utilities/Easings.cs +++ b/src/Artemis.Core/Utilities/Easings.cs @@ -54,6 +54,7 @@ namespace Artemis.Core case Functions.BounceEaseIn: return BounceEaseIn(p); case Functions.BounceEaseOut: return BounceEaseOut(p); case Functions.BounceEaseInOut: return BounceEaseInOut(p); + case Functions.Step: return Step (p); } } @@ -358,6 +359,13 @@ namespace Artemis.Core return 0.5 * BounceEaseOut(p * 2 - 1) + 0.5; } + /// + /// An snappy animation that moves instantly to the next destination on the next keyframe + /// + public static double Step (double p) { + return Math.Floor (p); + } + /// /// Easing Functions enumeration /// @@ -393,7 +401,8 @@ namespace Artemis.Core BackEaseInOut, BounceEaseIn, BounceEaseOut, - BounceEaseInOut + BounceEaseInOut, + Step } } } \ No newline at end of file