Difference between revisions of "Easing"
From GiderosMobile
Line 11: | Line 11: | ||
=== Example === | === Example === | ||
− | A table holding | + | A table holding a few easings |
<source lang="lua"> | <source lang="lua"> | ||
require "easing" | require "easing" | ||
Line 21: | Line 21: | ||
easing.inBounce, -- 4 | easing.inBounce, -- 4 | ||
easing.outBounce, -- 5 | easing.outBounce, -- 5 | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
</source> | </source> | ||
Line 56: | Line 30: | ||
=== <translate>Events</translate> === | === <translate>Events</translate> === | ||
=== <translate>Constants</translate> === | === <translate>Constants</translate> === | ||
+ | easing.inBack<br/> <!-- GIDEROSCST:easing.inBack--> | ||
+ | easing.outBack<br/> <!-- GIDEROSCST:easing.outBack--> | ||
+ | easing.inOutBack<br/> <!-- GIDEROSCST:easing.inOutBack--> | ||
+ | easing.inBounce<br/> <!-- GIDEROSCST:easing.inBounce--> | ||
+ | easing.outBounce<br/> <!-- GIDEROSCST:easing.outBounce--> | ||
+ | easing.inOutBounce<br/> <!-- GIDEROSCST:easing.inOutBounce--> | ||
+ | easing.inCircular<br/> <!-- GIDEROSCST:easing.inCircular--> | ||
+ | easing.outCircular<br/> <!-- GIDEROSCST:easing.outCircular--> | ||
+ | easing.inOutCircular<br/> <!-- GIDEROSCST:easing.inOutCircular--> | ||
+ | easing.inCubic<br/> <!-- GIDEROSCST:easing.inCubic--> | ||
+ | easing.outCubic<br/> <!-- GIDEROSCST:easing.outCubic--> | ||
+ | easing.inOutCubic<br/> <!-- GIDEROSCST:easing.inOutCubic--> | ||
+ | easing.inElastic<br/> <!-- GIDEROSCST:easing.inElastic--> | ||
+ | easing.outElastic<br/> <!-- GIDEROSCST:easing.outElastic--> | ||
+ | easing.inOutElastic<br/> <!-- GIDEROSCST:easing.inOutElastic--> | ||
+ | easing.inExponential<br/> <!-- GIDEROSCST:easing.inExponential--> | ||
+ | easing.outExponential<br/> <!-- GIDEROSCST:easing.outExponential--> | ||
+ | easing.inOutExponential<br/> <!-- GIDEROSCST:easing.inOutExponential--> | ||
+ | easing.linear<br/> <!-- GIDEROSCST:easing.linear--> | ||
+ | easing.inQuadratic<br/> <!-- GIDEROSCST:easing.inQuadratic--> | ||
+ | easing.outQuadratic<br/> <!-- GIDEROSCST:easing.outQuadratic--> | ||
+ | easing.inOutQuadratic<br/> <!-- GIDEROSCST:easing.inOutQuadratic--> | ||
+ | easing.inQuartic<br/> <!-- GIDEROSCST:easing.inQuartic--> | ||
+ | easing.outQuartic<br/> <!-- GIDEROSCST:easing.outQuartic--> | ||
+ | easing.inOutQuartic<br/> <!-- GIDEROSCST:easing.inOutQuartic--> | ||
+ | easing.inQuintic<br/> <!-- GIDEROSCST:easing.inQuintic--> | ||
+ | easing.outQuintic<br/> <!-- GIDEROSCST:easing.outQuintic--> | ||
+ | easing.inOutQuintic<br/> <!-- GIDEROSCST:easing.inOutQuintic--> | ||
+ | easing.inSine<br/> <!-- GIDEROSCST:easing.inSine--> | ||
+ | easing.outSine<br/> <!-- GIDEROSCST:easing.outSine--> | ||
+ | easing.inOutSine<br/> <!-- GIDEROSCST:easing.inOutSine--> | ||
|} | |} | ||
{{GIDEROS IMPORTANT LINKS}} | {{GIDEROS IMPORTANT LINKS}} |
Revision as of 04:37, 26 March 2020
Supported platforms:
Available since: 2020.2
Description
Easing functions to help tween between states.
require "easing"
Example
A table holding a few easings
require "easing"
-- EASINGS
easings = {
easing.inBack, -- 1
easing.outBack, -- 2
easing.inOutBack, -- 3
easing.inBounce, -- 4
easing.outBounce, -- 5
}
Methods |
EventsConstantseasing.inBack |