Difference between revisions of "Easing"
(3 intermediate revisions by 2 users not shown) | |||
Line 6: | Line 6: | ||
=== 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 49: | Line 52: | ||
easing.inOutSine, -- 31 | easing.inOutSine, -- 31 | ||
} | } | ||
− | </ | + | </syntaxhighlight> |
+ | |||
+ | === See also === | ||
+ | '''[[SceneManager]]''' | ||
{|- | {|- |
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 |