Class EasingFunctions
- Namespace
- SharpConsoleUI.Animation
- Assembly
- SharpConsoleUI.dll
Standard easing functions for animations. All functions accept t in [0,1] and return a value where f(0)=0 and f(1)=1.
public static class EasingFunctions
- Inheritance
-
EasingFunctions
- Inherited Members
Methods
Bounce(double)
Bounce easing: simulates a bouncing ball effect.
public static double Bounce(double t)
Parameters
tdouble
Returns
EaseIn(double)
Delegate for easing functions that map normalized time [0,1] to progress [0,1].
public static double EaseIn(double t)
Parameters
tdouble
Returns
EaseInOut(double)
Delegate for easing functions that map normalized time [0,1] to progress [0,1].
public static double EaseInOut(double t)
Parameters
tdouble
Returns
EaseOut(double)
Delegate for easing functions that map normalized time [0,1] to progress [0,1].
public static double EaseOut(double t)
Parameters
tdouble
Returns
Elastic(double)
Elastic easing: overshoots and oscillates like a spring.
public static double Elastic(double t)
Parameters
tdouble
Returns
Linear(double)
Delegate for easing functions that map normalized time [0,1] to progress [0,1].
public static double Linear(double t)
Parameters
tdouble
Returns
SinePulse(double)
Sine pulse: rises from 0 to 1 at midpoint, then falls back to 0. Useful for flash/pulse effects where the value should peak and return.
public static double SinePulse(double t)
Parameters
tdouble