Easing - Qkrisi/ktanemodkit GitHub Wiki

Easing

public static class Easing

Easings let you change the acceleration and deceleration of an animation transition.


In - Animations start slowly, then finish quickly.

Out - Animations start quickly, then slow towards the end.

InOut - Animations start and end slowly, but move quickly in the middle.


public static float InQuad(float time, float start, float end, float duration)
public static float OutQuad(float time, float start, float end, float duration)
public static float InOutQuad(float time, float start, float end, float duration)

Quadratic function


public static float InCubic(float time, float start, float end, float duration)
public static float OutCubic(float time, float start, float end, float duration)
public static float InOutCubic(float time, float start, float end, float duration)

Cubic function


public static float InQuart(float time, float start, float end, float duration)
public static float OutQuart(float time, float start, float end, float duration)
public static float InOutQuart(float time, float start, float end, float duration)

Quartic function


public static float InQuint(float time, float start, float end, float duration)
public static float OutQuint(float time, float start, float end, float duration)
public static float InOutQuint(float time, float start, float end, float duration)

Quintic function


public static float InSine(float time, float start, float end, float duration)
public static float OutSine(float time, float start, float end, float duration)
public static float InOutSine(float time, float start, float end, float duration)

Sinusoidal funciton


public static float InExpo(float time, float start, float end, float duration)
public static float OutExpo(float time, float start, float end, float duration)
public static float InOutExpo(float time, float start, float end, float duration)

Exponential function


public static float InCirc(float time, float start, float end, float duration)
public static float OutCirc(float time, float start, float end, float duration)
public static float InOutCirc(float time, float start, float end, float duration)

Circular function