Ease
Extensions to playdate.easingFunctions
, aliased as Ease in Noble Engine.
See the Playdate SDK for a list of easing functions.
Functions
- enter(__easingFunction)
-
Returns the first half of an "inOut" or "outIn" easing function.
Returns
nil
for any easing function that isn't in the form ofEase.inOutXxxx
orEase.outInXxxx
.Ease.linear
returns itself.Parameters
- __easingFunction
Usage
local ease = Ease.outInQuad local easeEnter = Ease.enter(ease) -- Returns "Ease.outQuad"
- __easingFunction
- exit(__easingFunction)
-
Returns the second half of an "inOut" or "outIn" easing function.
Returns
nil
for any easing function that isn't in the form ofEase.inOutXxxx
orEase.outInXxxx
.Ease.linear
returns itself.Parameters
- __easingFunction
Usage
local ease = Ease.outInQuad local easeExit = Ease.exit(ease) -- Returns "Ease.inQuad"
- __easingFunction
- reverse(__easingFunction)
-
Returns the reverse function of the provided function.
Returns
nil
for any easing function that isn't in the form ofEase.inXxxx
orEase.outXxxx
.Ease.linear
returns itself.Parameters
- __easingFunction
Usage
local ease = Ease.inQuad local reverseEase = Ease.reverse(ease) -- Returns "Ease.outQuad"
- __easingFunction