MCPcopy Index your code
hub / github.com/LaVache-FR/AnimationUtil

github.com/LaVache-FR/AnimationUtil @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
50 symbols 77 edges 4 files 17 documented · 34%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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();

Extension points exported contracts — how you extend this code

Easing (Interface)
(no doc) [8 implementers]
fr/lavache/anime/Easing.java

Core symbols most depended-on inside this repo

ease
called by 4
fr/lavache/anime/Easing.java
getPeriod
called by 3
fr/lavache/anime/Easing.java
getAmplitude
called by 3
fr/lavache/anime/Easing.java
getOvershoot
called by 3
fr/lavache/anime/Easing.java
getEase
called by 1
fr/lavache/anime/Animate.java
clamp
called by 1
fr/lavache/anime/Animate.java
runGameLoop
called by 0
fr/lavache/anime/DeltaCallExemple.java
Elastic
called by 0
fr/lavache/anime/Easing.java

Shape

Method 38
Class 11
Interface 1

Languages

Java100%

Modules by API surface

fr/lavache/anime/Easing.java30 symbols
fr/lavache/anime/Animate.java17 symbols
fr/lavache/anime/DeltaCallExemple.java2 symbols
fr/lavache/anime/Delta.java1 symbols

For agents

$ claude mcp add AnimationUtil \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact