diff options
author | syeyoung <cyong06@naver.com> | 2021-02-05 23:43:38 +0900 |
---|---|---|
committer | syeyoung <cyong06@naver.com> | 2021-02-05 23:43:38 +0900 |
commit | fe4dfe76628650cdd186726f7e419e8a2c4a624e (patch) | |
tree | 529c624fa00a38081db4572ab35a003175711457 /src/main/java/kr/syeyoung/dungeonsguide/utils | |
parent | eae4f215143ef9ce659f73c7d4e3dac08e894cec (diff) | |
download | Skyblock-Dungeons-Guide-fe4dfe76628650cdd186726f7e419e8a2c4a624e.tar.gz Skyblock-Dungeons-Guide-fe4dfe76628650cdd186726f7e419e8a2c4a624e.tar.bz2 Skyblock-Dungeons-Guide-fe4dfe76628650cdd186726f7e419e8a2c4a624e.zip |
mnn text
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/utils')
-rwxr-xr-x | src/main/java/kr/syeyoung/dungeonsguide/utils/RenderUtils.java | 5 |
1 files changed, 5 insertions, 0 deletions
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); } |