Skip to content

Ease

namespace Griff;
public static class Ease

Easing curves for tweens: each maps progress 0–1 to an eased 0–1 (some briefly overshoot, like OutBack). Pass one to Tween, MoveTo and friends, or write your own.

public static Func<float, float> Of(Easing easing)

The curve easing names.

public static readonly Func<float, float> InBack

Pulls back a little, then goes.

public static readonly Func<float, float> InCubic
public static readonly Func<float, float> InOutCubic
public static readonly Func<float, float> InOutQuad
public static readonly Func<float, float> InOutSine
public static readonly Func<float, float> InQuad
public static readonly Func<float, float> Linear
public static readonly Func<float, float> OutBack

Overshoots the target a little, then settles. Good for things popping into place.

public static readonly Func<float, float> OutBounce

Lands like a dropped ball.

public static readonly Func<float, float> OutCubic
public static readonly Func<float, float> OutElastic

Springs past the target and wobbles to rest.

public static readonly Func<float, float> OutQuad