From fe4dfe76628650cdd186726f7e419e8a2c4a624e Mon Sep 17 00:00:00 2001 From: syeyoung Date: Fri, 5 Feb 2021 23:43:38 +0900 Subject: mnn text --- src/main/java/kr/syeyoung/dungeonsguide/utils/RenderUtils.java | 5 +++++ 1 file changed, 5 insertions(+) (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 68243d84..7375122c 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/utils/RenderUtils.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/utils/RenderUtils.java @@ -70,6 +70,11 @@ public class RenderUtils { GlStateManager.disableBlend(); } + 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); + } + public static WorldRenderer color(WorldRenderer worldRenderer, int color ){ return worldRenderer.color(((color >> 16) & 0xFF) / 255.0f, ((color >> 8) & 0xFF) / 255.0f, (color &0xFF) / 255.0f, ((color >> 24) & 0xFF) / 255.0f); } -- cgit