1
mirror of https://github.com/Shiewk/Widgets.git synced 2026-04-28 11:34:17 +02:00

Rework widget positioning

This commit is contained in:
Shy
2025-11-20 19:33:12 +01:00
parent 4b27e15e0c
commit ceb507078c
8 changed files with 279 additions and 164 deletions
@@ -9,14 +9,6 @@ public class WidgetUtils {
public static final BooleanSupplier TRUE_SUPPLIER = () -> true;
public static double translateToWidgetSettingsValue(double value, int max){
return (value / max) * 100;
}
public static double translateToScreen(double value, int max){
return value / 100d * max;
}
public static double computeEasing(double x) {
return 1d - Math.pow(1d - x, 3.5d);
}