Skip to main content

Ease

Ease configures the direction and the progress of a value change.

Usage example

There are lots of places that Ease can be used to enhance animations or transitions. This code for example switches to the start scene of the game and uses an ease function make the outro animation more appealing.

scenes.switchTo(StartScene.class, SceneTransition.custom()
.outroEase(Ease.SINE_IN)
.outroAnimation(new CirclesAnimation())
.outroDurationMillis(2000)
.introDurationMillis(250));

Overview

EaseVisualization
Ease.FLICKERFLICKER
Ease.IN_PLATEAUIN_PLATEAU
Ease.IN_PLATEAU_OUTIN_PLATEAU_OUT
Ease.LINEAR_INLINEAR_IN
Ease.LINEAR_OUTLINEAR_OUT
Ease.PLATEAU_OUTPLATEAU_OUT
Ease.PLATEAU_OUT_SLOWPLATEAU_OUT_SLOW
Ease.SIN_IN_OUT_TWICESIN_IN_OUT_TWICE
Ease.SINE_INSINE_IN
Ease.SINE_IN_OUTSINE_IN_OUT
Ease.SINE_OUTSINE_OUT
Ease.SPARKLESPARKLE
Ease.SQUARE_INSQUARE_IN
Ease.SQUARE_OUTSQUARE_OUT