Difference between revisions of "Easing"

From GiderosMobile
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
<!-- GIDEROSOBJ:Easing -->
 
<!-- GIDEROSOBJ:Easing -->
'''<translate>Supported platforms</translate>:''' [[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/>
+
'''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/>
'''<translate>Available since</translate>:''' 2020.2<br/>
+
'''Available since:''' 2020.2<br/>
  
 
=== Description ===
 
=== Description ===
Line 53: Line 53:
 
{|-
 
{|-
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
=== <translate>Methods</translate> ===
+
=== Methods ===
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
=== <translate>Events</translate> ===
+
=== Events ===
=== <translate>Constants</translate> ===
+
=== Constants ===
 
easing.inBack ''inBack'' <br/> <!-- GIDEROSCST:easing.inBack inBack-->
 
easing.inBack ''inBack'' <br/> <!-- GIDEROSCST:easing.inBack inBack-->
 
easing.outBack ''outBack'' <br/> <!-- GIDEROSCST:easing.outBack outBack-->
 
easing.outBack ''outBack'' <br/> <!-- GIDEROSCST:easing.outBack outBack-->

Revision as of 09:10, 24 March 2022

Supported platforms: Platform android.pngPlatform ios.pngPlatform pc.pngPlatform mac.pngPlatform winrt.pngPlatform win32.png
Available since: 2020.2

Description

Easing functions to help tween between states.

require "easing"

Note: works in pair with the SceneManager plugin

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
}

Methods

Events

Constants

easing.inBack inBack
easing.outBack outBack
easing.inOutBack inOutBack
easing.inBounce inBounce
easing.outBounce outBounce
easing.inOutBounce inOutBounce
easing.inCircular inCircular
easing.outCircular outCircular
easing.inOutCircular inOutCircular
easing.inCubic inCubic
easing.outCubic outCubic
easing.inOutCubic inOutCubic
easing.inElastic inElastic
easing.outElastic outElastic
easing.inOutElastic inOutElastic
easing.inExponential inExponential
easing.outExponential outExponential
easing.inOutExponential inOutExponential
easing.linear linear
easing.inQuadratic inQuadratic
easing.outQuadratic outQuadratic
easing.inOutQuadratic inOutQuadratic
easing.inQuartic inQuartic
easing.outQuartic outQuartic
easing.inOutQuartic inOutQuartic
easing.inQuintic inQuintic
easing.outQuintic outQuintic
easing.inOutQuintic inOutQuintic
easing.inSine inSine
easing.outSine outSine
easing.inOutSine inOutSine