Easings

(ns easings
  (:require [fastmath.easings :as easings]
            [fastmath.dev.codox :as codox]))

Reference

fastmath.easings

Easing functions.

List of all are in easings-list.

back-in

  • (back-in t)
  • (back-in s t)

BackIn easing.

Parameter s (default: 1.70158) defines overshoot.

back-in-out

  • (back-in-out t)
  • (back-in-out s t)

BackInOut easing.

Parameter s (default: 1.70158) defines overshoot.

back-out

  • (back-out t)
  • (back-out s t)

BackOut easing.

Parameter s (default: 1.70158) defines overshoot.

bounce-in

  • (bounce-in t)

BounceIn easing

bounce-in-out

  • (bounce-in-out t)

BounceInOut easing

bounce-out

  • (bounce-out t)

BounceOut easing

circle-in

  • (circle-in t)

CircleIn easing

circle-in-out

  • (circle-in-out t)

CircleInOut easing

circle-out

  • (circle-out t)

CircleIn easing

cubic-in

  • (cubic-in t)

CubicIn easing

cubic-in-out

  • (cubic-in-out t)

CubicInOut easing

cubic-out

  • (cubic-out t)

CubicOut easing

easings-list

Map of easing names (as keywords) and functions.

elastic-in

  • (elastic-in t)
  • (elastic-in amplitude period)

ElasticIn.

When called with t parameter, returns easing value (for amplitude=1.0 and period=0.3). When called with amplitude and period returns custom easing function.

elastic-in-out

  • (elastic-in-out t)
  • (elastic-in-out amplitude period)

ElasticInOut.

When called with t parameter, returns easing value (for amplitude=1.0 and period=0.3). When called with amplitude and period returns custom easing function.

elastic-out

  • (elastic-out t)
  • (elastic-out amplitude period)

ElasticOut.

When called with t parameter, returns easing value (for amplitude=1.0 and period=0.3). When called with amplitude and period returns custom easing function.

exp-in

  • (exp-in t)

ExpIn easing

exp-in-out

  • (exp-in-out t)

ExpInOut easing

exp-out

  • (exp-out t)

ExpOut easing

in-out

  • (in-out easeing)

Create in-out easing for given easing function.

linear

  • (linear t)

Linear easing (identity)

out

  • (out easeing)

Create out easing for given easing function.

poly-in

  • (poly-in t)
  • (poly-in e t)

PolyIn easing.

Optional exponent e defaults to 3.0.

poly-in-out

  • (poly-in-out t)
  • (poly-in-out e t)

PolyInOut easing.

Optional exponent e defaults to 3.0.

poly-out

  • (poly-out t)
  • (poly-out e t)

PolyOut easing.

Optional exponent e defaults to 3.0.

quad-in

  • (quad-in t)

QuadIn easing

quad-in-out

  • (quad-in-out t)

QuadInOut easing

quad-out

  • (quad-out t)

QuadOut easing

reflect

  • (reflect easing center)

Create in-out easing for given easing function and center.

sin-in

  • (sin-in t)

SinIn easing

sin-in-out

  • (sin-in-out t)

SinInOut easing

sin-out

  • (sin-out t)

SinOut easing