Skip to content

Simple AnimationUtil using Easing functions. Can be used anywhere, Hacked-Client, Mods, etc..

License

Notifications You must be signed in to change notification settings

TrigonometricDev/AnimationUtil

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

AnimationUtil

Simple AnimationUtil using Easing functions. Can be used anywhere, Hacked-Client, Mods, etc..

Render example > https://gyazo.com/780b5d84f7bc69f863acdcc7022591fe

Exemple of how to use it.

//Variable Initialization
Animate anim = new Animate();

//Set Easing Method
anim.setEase(Easing.CUBIC_OUT);

//Set min Value
anim.setMin(10);

//Set max Value
anim.setMax(500);

//Set Animation Duration
anim.setSpeed(200);

//Set Reversed Animation
anim.setReversed(false);

//Update Animation
anim.update();

//Draw Rectangle, X, Y, WIDTH, HEIGHT, COLOR.
drawRect(anim.getValue(), 10, 20, 20, 0xFFFFFFFF);

//Reset Animation
if(Mouse.isButtonDown(0))
   anim.reset();

OR

//Variable Initialization
Animate anim = new Animate();

//Set Easing Method
anim.setEase(Easing.CUBIC_OUT).setMin(10).setMax(500).setSpeed(200).setReversed(false).update();

//Draw Rectangle, X, Y, WIDTH, HEIGHT, COLOR.
drawRect(anim.getValue(), 10, 20, 20, 0xFFFFFFFF);

//Reset Animation
if(Mouse.isButtonDown(0))
   anim.reset();

About

Simple AnimationUtil using Easing functions. Can be used anywhere, Hacked-Client, Mods, etc..

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%