Difference between revisions of "Easing"
m |
|||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
<!-- GIDEROSOBJ:Easing --> | <!-- GIDEROSOBJ:Easing --> | ||
− | ''' | + | '''Supported platforms:''' [[File:Platform android.png]][[File:Platform ios.png]][[File:Platform pc.png]][[File:Platform mac.png]][[File:Platform winrt.png]][[File:Platform win32.png]]<br/> |
− | ''' | + | '''Available since:''' 2020.2<br/> |
=== Description === | === Description === | ||
Easing functions to help tween between states. | Easing functions to help tween between states. | ||
− | < | + | |
+ | First you need to add the plugin to your project: '''right click Plugins -> Add plugin -> Easing''' | ||
+ | |||
+ | Then you need to '''require''' the plugin: | ||
+ | <syntaxhighlight lang="lua"> | ||
require "easing" | require "easing" | ||
− | </ | + | </syntaxhighlight> |
=== Example === | === Example === | ||
A table holding all easings | A table holding all easings | ||
− | < | + | <syntaxhighlight lang="lua"> |
require "easing" | require "easing" | ||
-- EASINGS | -- EASINGS | ||
Line 48: | Line 52: | ||
easing.inOutSine, -- 31 | easing.inOutSine, -- 31 | ||
} | } | ||
− | </ | + | </syntaxhighlight> |
+ | |||
+ | === See also === | ||
+ | '''[[SceneManager]]''' | ||
{|- | {|- | ||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
− | === | + | === Methods === |
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
− | === | + | === Events === |
− | === | + | === Constants === |
− | easing.inBack<br/> <!-- GIDEROSCST:easing.inBack--> | + | easing.inBack ''inBack'' <br/> <!-- GIDEROSCST:easing.inBack inBack--> |
− | easing.outBack<br/> <!-- GIDEROSCST:easing.outBack--> | + | easing.outBack ''outBack'' <br/> <!-- GIDEROSCST:easing.outBack outBack--> |
− | easing.inOutBack<br/> <!-- GIDEROSCST:easing.inOutBack--> | + | easing.inOutBack ''inOutBack'' <br/> <!-- GIDEROSCST:easing.inOutBack inOutBack--> |
− | easing.inBounce<br/> <!-- GIDEROSCST:easing.inBounce--> | + | easing.inBounce ''inBounce'' <br/> <!-- GIDEROSCST:easing.inBounce inBounce--> |
− | easing.outBounce<br/> <!-- GIDEROSCST:easing.outBounce--> | + | easing.outBounce ''outBounce'' <br/> <!-- GIDEROSCST:easing.outBounce outBounce--> |
− | easing.inOutBounce<br/> <!-- GIDEROSCST:easing.inOutBounce--> | + | easing.inOutBounce ''inOutBounce'' <br/> <!-- GIDEROSCST:easing.inOutBounce inOutBounce--> |
− | easing.inCircular<br/> <!-- GIDEROSCST:easing.inCircular--> | + | easing.inCircular ''inCircular'' <br/> <!-- GIDEROSCST:easing.inCircular inCircular--> |
− | easing.outCircular<br/> <!-- GIDEROSCST:easing.outCircular--> | + | easing.outCircular ''outCircular'' <br/> <!-- GIDEROSCST:easing.outCircular outCircular--> |
− | easing.inOutCircular<br/> <!-- GIDEROSCST:easing.inOutCircular--> | + | easing.inOutCircular ''inOutCircular'' <br/> <!-- GIDEROSCST:easing.inOutCircular inOutCircular--> |
− | easing.inCubic<br/> <!-- GIDEROSCST:easing.inCubic--> | + | easing.inCubic ''inCubic'' <br/> <!-- GIDEROSCST:easing.inCubic inCubic--> |
− | easing.outCubic<br/> <!-- GIDEROSCST:easing.outCubic--> | + | easing.outCubic ''outCubic'' <br/> <!-- GIDEROSCST:easing.outCubic outCubic--> |
− | easing.inOutCubic<br/> <!-- GIDEROSCST:easing.inOutCubic--> | + | easing.inOutCubic ''inOutCubic'' <br/> <!-- GIDEROSCST:easing.inOutCubic inOutCubic--> |
− | easing.inElastic<br/> <!-- GIDEROSCST:easing.inElastic--> | + | easing.inElastic ''inElastic'' <br/> <!-- GIDEROSCST:easing.inElastic inElastic--> |
− | easing.outElastic<br/> <!-- GIDEROSCST:easing.outElastic--> | + | easing.outElastic ''outElastic'' <br/> <!-- GIDEROSCST:easing.outElastic outElastic--> |
− | easing.inOutElastic<br/> <!-- GIDEROSCST:easing.inOutElastic--> | + | easing.inOutElastic ''inOutElastic'' <br/> <!-- GIDEROSCST:easing.inOutElastic inOutElastic--> |
− | easing.inExponential<br/> <!-- GIDEROSCST:easing.inExponential--> | + | easing.inExponential ''inExponential'' <br/> <!-- GIDEROSCST:easing.inExponential inExponential--> |
− | easing.outExponential<br/> <!-- GIDEROSCST:easing.outExponential--> | + | easing.outExponential ''outExponential'' <br/> <!-- GIDEROSCST:easing.outExponential outExponential--> |
− | easing.inOutExponential<br/> <!-- GIDEROSCST:easing.inOutExponential--> | + | easing.inOutExponential ''inOutExponential'' <br/> <!-- GIDEROSCST:easing.inOutExponential inOutExponential--> |
− | easing.linear<br/> <!-- GIDEROSCST:easing.linear--> | + | easing.linear ''linear'' <br/> <!-- GIDEROSCST:easing.linear linear--> |
− | easing.inQuadratic<br/> <!-- GIDEROSCST:easing.inQuadratic--> | + | easing.inQuadratic ''inQuadratic'' <br/> <!-- GIDEROSCST:easing.inQuadratic inQuadratic--> |
− | easing.outQuadratic<br/> <!-- GIDEROSCST:easing.outQuadratic--> | + | easing.outQuadratic ''outQuadratic'' <br/> <!-- GIDEROSCST:easing.outQuadratic outQuadratic--> |
− | easing.inOutQuadratic<br/> <!-- GIDEROSCST:easing.inOutQuadratic--> | + | easing.inOutQuadratic ''inOutQuadratic'' <br/> <!-- GIDEROSCST:easing.inOutQuadratic inOutQuadratic--> |
− | easing.inQuartic<br/> <!-- GIDEROSCST:easing.inQuartic--> | + | easing.inQuartic ''inQuartic'' <br/> <!-- GIDEROSCST:easing.inQuartic inQuartic--> |
− | easing.outQuartic<br/> <!-- GIDEROSCST:easing.outQuartic--> | + | easing.outQuartic ''outQuartic'' <br/> <!-- GIDEROSCST:easing.outQuartic outQuartic--> |
− | easing.inOutQuartic<br/> <!-- GIDEROSCST:easing.inOutQuartic--> | + | easing.inOutQuartic ''inOutQuartic'' <br/> <!-- GIDEROSCST:easing.inOutQuartic inOutQuartic--> |
− | easing.inQuintic<br/> <!-- GIDEROSCST:easing.inQuintic--> | + | easing.inQuintic ''inQuintic'' <br/> <!-- GIDEROSCST:easing.inQuintic inQuintic--> |
− | easing.outQuintic<br/> <!-- GIDEROSCST:easing.outQuintic--> | + | easing.outQuintic ''outQuintic'' <br/> <!-- GIDEROSCST:easing.outQuintic outQuintic--> |
− | easing.inOutQuintic<br/> <!-- GIDEROSCST:easing.inOutQuintic--> | + | easing.inOutQuintic ''inOutQuintic'' <br/> <!-- GIDEROSCST:easing.inOutQuintic inOutQuintic--> |
− | easing.inSine<br/> <!-- GIDEROSCST:easing.inSine--> | + | easing.inSine ''inSine'' <br/> <!-- GIDEROSCST:easing.inSine inSine--> |
− | easing.outSine<br/> <!-- GIDEROSCST:easing.outSine--> | + | easing.outSine ''outSine'' <br/> <!-- GIDEROSCST:easing.outSine outSine--> |
− | easing.inOutSine<br/> <!-- GIDEROSCST:easing.inOutSine--> | + | easing.inOutSine ''inOutSine'' <br/> <!-- GIDEROSCST:easing.inOutSine inOutSine--> |
|} | |} | ||
{{GIDEROS IMPORTANT LINKS}} | {{GIDEROS IMPORTANT LINKS}} |
Latest revision as of 03:51, 8 December 2023
Supported platforms:
Available since: 2020.2
Description
Easing functions to help tween between states.
First you need to add the plugin to your project: right click Plugins -> Add plugin -> Easing
Then you need to require the plugin:
require "easing"
Example
A table holding all easings
require "easing"
-- EASINGS
easings = {
easing.inBack, -- 1
easing.outBack, -- 2
easing.inOutBack, -- 3
easing.inBounce, -- 4
easing.outBounce, -- 5
easing.inOutBounce, -- 6
easing.inCircular, -- 7
easing.outCircular, -- 8
easing.inOutCircular, -- 9
easing.inCubic, -- 10
easing.outCubic, -- 11
easing.inOutCubic, -- 12
easing.inElastic, -- 13
easing.outElastic, -- 14
easing.inOutElastic, -- 15
easing.inExponential, -- 16
easing.outExponential, -- 17
easing.inOutExponential, -- 18
easing.linear, -- 19
easing.inQuadratic, -- 20
easing.outQuadratic, -- 21
easing.inOutQuadratic, -- 22
easing.inQuartic, -- 23
easing.outQuartic, -- 24
easing.inOutQuartic, -- 25
easing.inQuintic, -- 26
easing.outQuintic, -- 27
easing.inOutQuintic, -- 28
easing.inSine, -- 29
easing.outSine, -- 30
easing.inOutSine, -- 31
}
See also
Methods |
EventsConstantseasing.inBack inBack |