diff options
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/utils/RenderUtils.java')
-rwxr-xr-x | src/main/java/kr/syeyoung/dungeonsguide/utils/RenderUtils.java | 4 |
1 files changed, 2 insertions, 2 deletions
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 ){ |