Class Easings
Assembly: Artemis.Core.dll
Syntax
public static class Easings
Methods
BackEaseIn(double)
Modeled after the overshooting cubic y = x^3-xsin(xpi)
Declaration
public static double BackEaseIn(double p)
Parameters
Type |
Name |
Description |
double |
p |
|
Returns
BackEaseInOut(double)
Modeled after the piecewise overshooting cubic function:
y = (1/2)((2x)^3-(2x)sin(2xpi)) ; [0, 0.5)
y = (1/2)*(1-((1-x)^3-(1-x)*sin((1-x)*pi))+1) ; [0.5, 1]
Declaration
public static double BackEaseInOut(double p)
Parameters
Type |
Name |
Description |
double |
p |
|
Returns
BackEaseOut(double)
Modeled after overshooting cubic y = 1-((1-x)^3-(1-x)*sin((1-x)*pi))
Declaration
public static double BackEaseOut(double p)
Parameters
Type |
Name |
Description |
double |
p |
|
Returns
BounceEaseIn(double)
Declaration
public static double BounceEaseIn(double p)
Parameters
Type |
Name |
Description |
double |
p |
|
Returns
BounceEaseInOut(double)
Declaration
public static double BounceEaseInOut(double p)
Parameters
Type |
Name |
Description |
double |
p |
|
Returns
BounceEaseOut(double)
Declaration
public static double BounceEaseOut(double p)
Parameters
Type |
Name |
Description |
double |
p |
|
Returns
CircularEaseIn(double)
Modeled after shifted quadrant IV of unit circle
Declaration
public static double CircularEaseIn(double p)
Parameters
Type |
Name |
Description |
double |
p |
|
Returns
CircularEaseInOut(double)
Modeled after the piecewise circular function
y = (1/2)(1 - Math.Sqrt(1 - 4x^2)) ; [0, 0.5)
y = (1/2)(Math.Sqrt(-(2x - 3)*(2x - 1)) + 1) ; [0.5, 1]
Declaration
public static double CircularEaseInOut(double p)
Parameters
Type |
Name |
Description |
double |
p |
|
Returns
CircularEaseOut(double)
Modeled after shifted quadrant II of unit circle
Declaration
public static double CircularEaseOut(double p)
Parameters
Type |
Name |
Description |
double |
p |
|
Returns
CubicEaseIn(double)
Modeled after the cubic y = x^3
Declaration
public static double CubicEaseIn(double p)
Parameters
Type |
Name |
Description |
double |
p |
|
Returns
CubicEaseInOut(double)
Modeled after the piecewise cubic
y = (1/2)((2x)^3) ; [0, 0.5)
y = (1/2)((2x-2)^3 + 2) ; [0.5, 1]
Declaration
public static double CubicEaseInOut(double p)
Parameters
Type |
Name |
Description |
double |
p |
|
Returns
CubicEaseOut(double)
Modeled after the cubic y = (x - 1)^3 + 1
Declaration
public static double CubicEaseOut(double p)
Parameters
Type |
Name |
Description |
double |
p |
|
Returns
ElasticEaseIn(double)
Modeled after the damped sine wave y = sin(13pi/2*x)*Math.Pow(2, 10 * (x - 1))
Declaration
public static double ElasticEaseIn(double p)
Parameters
Type |
Name |
Description |
double |
p |
|
Returns
ElasticEaseInOut(double)
Modeled after the piecewise exponentially-damped sine wave:
y = (1/2)sin(13pi/2(2x))Math.Pow(2, 10 * ((2x) - 1)) ; [0,0.5)
y = (1/2)(sin(-13pi/2*((2x-1)+1))Math.Pow(2,-10(2x-1)) + 2) ; [0.5, 1]
Declaration
public static double ElasticEaseInOut(double p)
Parameters
Type |
Name |
Description |
double |
p |
|
Returns
ElasticEaseOut(double)
Modeled after the damped sine wave y = sin(-13pi/2*(x + 1))*Math.Pow(2, -10x) + 1
Declaration
public static double ElasticEaseOut(double p)
Parameters
Type |
Name |
Description |
double |
p |
|
Returns
ExponentialEaseIn(double)
Modeled after the exponential function y = 2^(10(x - 1))
Declaration
public static double ExponentialEaseIn(double p)
Parameters
Type |
Name |
Description |
double |
p |
|
Returns
ExponentialEaseInOut(double)
Modeled after the piecewise exponential
y = (1/2)2^(10(2x - 1)) ; [0,0.5)
y = -(1/2)*2^(-10(2x - 1))) + 1 ; [0.5,1]
Declaration
public static double ExponentialEaseInOut(double p)
Parameters
Type |
Name |
Description |
double |
p |
|
Returns
ExponentialEaseOut(double)
Modeled after the exponential function y = -2^(-10x) + 1
Declaration
public static double ExponentialEaseOut(double p)
Parameters
Type |
Name |
Description |
double |
p |
|
Returns
Interpolate(double, Functions)
Interpolate using the specified function.
Declaration
public static double Interpolate(double p, Easings.Functions function)
Parameters
Returns
Linear(double)
Modeled after the line y = x
Declaration
public static double Linear(double p)
Parameters
Type |
Name |
Description |
double |
p |
|
Returns
QuadraticEaseIn(double)
Modeled after the parabola y = x^2
Declaration
public static double QuadraticEaseIn(double p)
Parameters
Type |
Name |
Description |
double |
p |
|
Returns
QuadraticEaseInOut(double)
Modeled after the piecewise quadratic
y = (1/2)((2x)^2) ; [0, 0.5)
y = -(1/2)((2x-1)*(2x-3) - 1) ; [0.5, 1]
Declaration
public static double QuadraticEaseInOut(double p)
Parameters
Type |
Name |
Description |
double |
p |
|
Returns
QuadraticEaseOut(double)
Modeled after the parabola y = -x^2 + 2x
Declaration
public static double QuadraticEaseOut(double p)
Parameters
Type |
Name |
Description |
double |
p |
|
Returns
QuarticEaseIn(double)
Modeled after the quartic x^4
Declaration
public static double QuarticEaseIn(double p)
Parameters
Type |
Name |
Description |
double |
p |
|
Returns
QuarticEaseInOut(double)
Modeled after the piecewise quartic
y = (1/2)((2x)^4) ; [0, 0.5)
y = -(1/2)((2x-2)^4 - 2) ; [0.5, 1]
Declaration
public static double QuarticEaseInOut(double p)
Parameters
Type |
Name |
Description |
double |
p |
|
Returns
QuarticEaseOut(double)
Modeled after the quartic y = 1 - (x - 1)^4
Declaration
public static double QuarticEaseOut(double p)
Parameters
Type |
Name |
Description |
double |
p |
|
Returns
QuinticEaseIn(double)
Modeled after the quintic y = x^5
Declaration
public static double QuinticEaseIn(double p)
Parameters
Type |
Name |
Description |
double |
p |
|
Returns
QuinticEaseInOut(double)
Modeled after the piecewise quintic
y = (1/2)((2x)^5) ; [0, 0.5)
y = (1/2)((2x-2)^5 + 2) ; [0.5, 1]
Declaration
public static double QuinticEaseInOut(double p)
Parameters
Type |
Name |
Description |
double |
p |
|
Returns
QuinticEaseOut(double)
Modeled after the quintic y = (x - 1)^5 + 1
Declaration
public static double QuinticEaseOut(double p)
Parameters
Type |
Name |
Description |
double |
p |
|
Returns
SineEaseIn(double)
Modeled after quarter-cycle of sine wave
Declaration
public static double SineEaseIn(double p)
Parameters
Type |
Name |
Description |
double |
p |
|
Returns
SineEaseInOut(double)
Modeled after half sine wave
Declaration
public static double SineEaseInOut(double p)
Parameters
Type |
Name |
Description |
double |
p |
|
Returns
SineEaseOut(double)
Modeled after quarter-cycle of sine wave (different phase)
Declaration
public static double SineEaseOut(double p)
Parameters
Type |
Name |
Description |
double |
p |
|
Returns
Step(double)
An snappy animation that moves instantly to the next destination on the next keyframe
Declaration
public static double Step(double p)
Parameters
Type |
Name |
Description |
double |
p |
|
Returns