tagline |
---|
easing functions |
Robert Penner's easing functions.
name|func
is (the name of) an ease function (see below)way
can be 'in' (default), 'out', 'inout' or 'outin't1
is the animation's current timet0
is the animation's start timedt
is the total animation durationd
is the value in0..1
corresponding to the current time...
are extra args to be passed to the ease function.
These functions map a number in 0..1
into a number in 0..1
.
Currently implemented functions: linear
, quad
, cubic
, quart
, quint
,
expo
, sine
, circ
, back
, elastic
, bounce
, slowmo
.
Note:
elastic
takes additional argsamplitude
,period
.slowmo
takes additional argspower
,ratio
,yoyo
.
Turn an in
function into an out
function or viceversa.
Turn an in
function into an inout
function, or an out
function into
an outin
function.
Turn an in
function into an outin
function, or an out
function into
an inout
function.
Same as easing.inout(function(t) return easing.reverse(f, t) end, t)
.
The list of easing function names in insert order. Extending the module namespace automatically adds the names to this list.