Skip to content
FutureBlitz

    Install

    Import std.math.easing

    std.math.easing

    Easing: how far along an animation is at a time t from 0 to 1, from 0 at its start to 1 at its end, for each of the usual curves, as easings.net draws them. In starts slow and ends fast, Out starts fast and ends slow, and InOut does both, each half a curve's In and Out. Back overshoots below 0 or past 1, Elastic springs past them, and Bounce bounces.

    std/math/easing.fb

    Functions

    EaseInSine function

    Public Function EaseInSine(t: Float): Float

    Along a quarter of a sine wave.

    std/math/easing.fb, line 16

    EaseOutSine function

    Public Function EaseOutSine(t: Float): Float

    Out along a quarter of a sine wave.

    std/math/easing.fb, line 18

    EaseInOutSine function

    Public Function EaseInOutSine(t: Float): Float

    In and out along a quarter of a sine wave.

    std/math/easing.fb, line 20

    EaseInQuad function

    Public Function EaseInQuad(t: Float): Float

    t squared.

    std/math/easing.fb, line 23

    EaseOutQuad function

    Public Function EaseOutQuad(t: Float): Float

    Out along t squared.

    std/math/easing.fb, line 25

    EaseInOutQuad function

    Public Function EaseInOutQuad(t: Float): Float

    In and out along t squared.

    std/math/easing.fb, line 27

    EaseInCubic function

    Public Function EaseInCubic(t: Float): Float

    t cubed.

    std/math/easing.fb, line 30

    EaseOutCubic function

    Public Function EaseOutCubic(t: Float): Float

    Out along t cubed.

    std/math/easing.fb, line 32

    EaseInOutCubic function

    Public Function EaseInOutCubic(t: Float): Float

    In and out along t cubed.

    std/math/easing.fb, line 34

    EaseInQuart function

    Public Function EaseInQuart(t: Float): Float

    t to the fourth.

    std/math/easing.fb, line 37

    EaseOutQuart function

    Public Function EaseOutQuart(t: Float): Float

    Out along t to the fourth.

    std/math/easing.fb, line 39

    EaseInOutQuart function

    Public Function EaseInOutQuart(t: Float): Float

    In and out along t to the fourth.

    std/math/easing.fb, line 41

    EaseInQuint function

    Public Function EaseInQuint(t: Float): Float

    t to the fifth.

    std/math/easing.fb, line 44

    EaseOutQuint function

    Public Function EaseOutQuint(t: Float): Float

    Out along t to the fifth.

    std/math/easing.fb, line 46

    EaseInOutQuint function

    Public Function EaseInOutQuint(t: Float): Float

    In and out along t to the fifth.

    std/math/easing.fb, line 48

    EaseInExpo function

    Public Function EaseInExpo(t: Float): Float

    2 to the power of 10 t, from 0 to 1 at the ends.

    std/math/easing.fb, line 51

    EaseOutExpo function

    Public Function EaseOutExpo(t: Float): Float

    Out along 2 to the power of 10 t, from 0 to 1 at the ends.

    std/math/easing.fb, line 53

    EaseInOutExpo function

    Public Function EaseInOutExpo(t: Float): Float

    In and out along 2 to the power of 10 t, from 0 to 1 at the ends.

    std/math/easing.fb, line 56

    EaseInCirc function

    Public Function EaseInCirc(t: Float): Float

    Along a quarter of a circle.

    std/math/easing.fb, line 63

    EaseOutCirc function

    Public Function EaseOutCirc(t: Float): Float

    Out along a quarter of a circle.

    std/math/easing.fb, line 65

    EaseInOutCirc function

    Public Function EaseInOutCirc(t: Float): Float

    In and out along a quarter of a circle.

    std/math/easing.fb, line 68

    EaseInBack function

    Public Function EaseInBack(t: Float): Float

    Pulling back below 0 before going, or past 1 before stopping.

    std/math/easing.fb, line 74

    EaseOutBack function

    Public Function EaseOutBack(t: Float): Float

    Out, past 1 before stopping.

    std/math/easing.fb, line 76

    EaseInOutBack function

    Public Function EaseInOutBack(t: Float): Float

    In and out, pulling back below 0 before going and past 1 before stopping.

    std/math/easing.fb, line 81

    EaseInElastic function

    Public Function EaseInElastic(t: Float): Float

    Springing past 0 or 1, as on an elastic, the swings shrinking.

    std/math/easing.fb, line 87

    EaseOutElastic function

    Public Function EaseOutElastic(t: Float): Float

    Out, springing past 1, as on an elastic, the swings shrinking.

    std/math/easing.fb, line 94

    EaseInOutElastic function

    Public Function EaseInOutElastic(t: Float): Float

    In and out, springing past 0 and 1, as on an elastic, the swings shrinking.

    std/math/easing.fb, line 101

    EaseInBounce function

    Public Function EaseInBounce(t: Float): Float

    Bouncing, as a ball dropped does, the bounces shrinking.

    std/math/easing.fb, line 110

    EaseOutBounce function

    Public Function EaseOutBounce(t: Float): Float

    Four bounces, each lower, the last ending at 1.

    std/math/easing.fb, line 113

    EaseInOutBounce function

    Public Function EaseInOutBounce(t: Float): Float

    In and out, bouncing, as a ball dropped does, the bounces shrinking.

    std/math/easing.fb, line 130

    Report an issue with this page or with FutureBlitz on GitHub.