Easing
The Easing service provides a set of easing functions that can be used to create smooth animations.
Methods
local t = 0.5
local result = Easing.Quadratic(t)
print(result)
Parameters
t
Returns
local t = 0.5
local result = Easing.Cubic(t)
print(result)
Parameters
t
Returns
local t = 0.5
local p = 2
local result = Easing.Back(t, p)
print(result)
Parameters
t
p
Returns
local t = 0.5
local result = Easing.Circle(t)
print(result)
Parameters
t
Returns
local t = 0.5
local p = 2
local result = Easing.Exponential(t, p)
print(result)
Parameters
t
p
Returns
local t = 0.5
local result = Easing.Sine(t)
print(result)
Parameters
t
Returns
local t = 0.5
local x1 = 0.1
local y1 = 0.2
local x2 = 0.3
local y2 = 0.4
local result = Easing.CubicBezier(t, x1, y1, x2, y2)
print(result)
Parameters
t
x1
y1
x2
y2
Returns
local t = 0.5
local bounces = 3
local bounciness = 2
local result = Easing.Bounce(t, bounces, bounciness)
print(result)
Parameters
t
bounces
bounciness
Returns
local t = 0.5
local oscillations = 3
local springiness = 2
local result = Easing.Elastic(t, oscillations, springiness)
print(result)