2. Custom Easing

You can see, that u cant animate value with your custom easings, ye? So, let's create your own easing!

Utility class

Firstly, you need to create utility class, it will help you alot. Let's create it! So, we need create java class and name it however u want.

Creating

Almost done! You need to create in this class easing, and give to it formula.

Example

public final static Easing TEST_EASING = value -> 1.0D - cos(value * PI / 2.0D); // Sine in easing

Done!

Last updated