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 of Ease.inOutXxxx or Ease.outInXxxx. Ease.linear returns itself.

Parameters

  • __easingFunction

Usage

local ease = Ease.outInQuad
local easeEnter = Ease.enter(ease)	-- Returns "Ease.outQuad"
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 of Ease.inOutXxxx or Ease.outInXxxx. Ease.linear returns itself.

Parameters

  • __easingFunction

Usage

local ease = Ease.outInQuad
local easeExit = Ease.exit(ease)		-- Returns "Ease.inQuad"
reverse(__easingFunction)
Returns the reverse function of the provided function. Returns nil for any easing function that isn't in the form of Ease.inXxxx or Ease.outXxxx. Ease.linear returns itself.

Parameters

  • __easingFunction

Usage

local ease = Ease.inQuad
local reverseEase = Ease.reverse(ease) -- Returns "Ease.outQuad"
Noble Engine by Mark LaCroix, Noble Robot Documentation created using LDoc 1.5.0.