Add linear easing (aka no easing)
This commit is contained in:
parent
c741bf3952
commit
0eb06dce3f
@ -4,6 +4,11 @@
|
|||||||
|
|
||||||
local easing = {}
|
local easing = {}
|
||||||
|
|
||||||
|
--- @type ease
|
||||||
|
function easing.linear(x)
|
||||||
|
return x
|
||||||
|
end
|
||||||
|
|
||||||
--- @type ease
|
--- @type ease
|
||||||
function easing.easeInSine(x)
|
function easing.easeInSine(x)
|
||||||
return 1 - math.cos((x * math.pi) / 2);
|
return 1 - math.cos((x * math.pi) / 2);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user