From 90fb4c2cdcd813d085e4c72d161b0efe06bcd164 Mon Sep 17 00:00:00 2001 From: syeyoung Date: Sat, 6 Feb 2021 02:43:13 +0900 Subject: text hud go brrr --- src/main/java/kr/syeyoung/dungeonsguide/utils/RenderUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/kr/syeyoung/dungeonsguide/utils') diff --git a/src/main/java/kr/syeyoung/dungeonsguide/utils/RenderUtils.java b/src/main/java/kr/syeyoung/dungeonsguide/utils/RenderUtils.java index 7375122c..91a03662 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/utils/RenderUtils.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/utils/RenderUtils.java @@ -71,8 +71,8 @@ public class RenderUtils { } public static int getChromaColorAt(int x, int y, float speed) { - float blah = (speed * System.currentTimeMillis()) % 360; - return Color.HSBtoRGB((((blah + x * x + y * y) % 360) / 360.0f), 1,1); + double blah = ((double)(speed) * (System.currentTimeMillis() / 2)) % 360; + return Color.HSBtoRGB((float) (((blah - (x * x + y * y) / 50.0f) % 360) / 360.0f), 1,1); } public static WorldRenderer color(WorldRenderer worldRenderer, int color ){ -- cgit