From 6404bbafdc77a8a031b71c40e9cfb28d0526a73f Mon Sep 17 00:00:00 2001 From: yugecin Date: Sat, 1 Oct 2016 12:03:07 +0200 Subject: [PATCH] better scale for rgb cursor color hue inc --- src/itdelatrisu/opsu/Options.java | 4 ++-- src/yugecin/opsudance/CursorColorOverrides.java | 4 ++-- src/yugecin/opsudance/Dancer.java | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/itdelatrisu/opsu/Options.java b/src/itdelatrisu/opsu/Options.java index 1bb5a740..2e037222 100644 --- a/src/itdelatrisu/opsu/Options.java +++ b/src/itdelatrisu/opsu/Options.java @@ -829,10 +829,10 @@ public class Options { } }, - DANCE_RGB_CURSOR_INC ("RGB cursor increment", "RGBCursorInc", "Amount of hue to shift, used for rainbow cursor override", Dancer.rgbhueinc, -1800, 1800) { + DANCE_RGB_CURSOR_INC ("RGB cursor increment", "RGBCursorInc", "Amount of hue to shift, used for rainbow cursor override", Dancer.rgbhueinc, -2000, 2000) { @Override public String getValueString() { - return String.format("%.1f°", val / 100f); + return String.format("%.2f°", val / 1000f); } @Override diff --git a/src/yugecin/opsudance/CursorColorOverrides.java b/src/yugecin/opsudance/CursorColorOverrides.java index 68c8a012..d3717bc1 100644 --- a/src/yugecin/opsudance/CursorColorOverrides.java +++ b/src/yugecin/opsudance/CursorColorOverrides.java @@ -97,12 +97,12 @@ public enum CursorColorOverrides { } private static Color nextRainbowColor() { - hue += Dancer.rgbcursorhueinc / 100f; + hue += Dancer.rgbcursorhueinc / 1000f; return new Color(java.awt.Color.getHSBColor(hue / 360f, 1.0f, 1.0f).getRGB()); } private static Color nextMirrorRainbowColor() { - hue += Dancer.rgbcursorhueinc / 100f; + hue += Dancer.rgbcursorhueinc / 1000f; return new Color(java.awt.Color.getHSBColor((hue + 180f) / 360f, 1.0f, 1.0f).getRGB()); } diff --git a/src/yugecin/opsudance/Dancer.java b/src/yugecin/opsudance/Dancer.java index 6ce76ab4..30cb2d5c 100644 --- a/src/yugecin/opsudance/Dancer.java +++ b/src/yugecin/opsudance/Dancer.java @@ -65,7 +65,7 @@ public class Dancer { public static int rgbhueinc = 70; // this should really get its own place somewhere... public static CursorColorOverrides cursorColorOverride = CursorColorOverrides.NONE; public static CursorColorOverrides cursorColorMirrorOverride = CursorColorOverrides.NONE; - public static int rgbcursorhueinc = 10; // this should really get its own place somewhere... + public static int rgbcursorhueinc = 100; // this should really get its own place somewhere... public static MoverDirection moverDirection = MoverDirection.RANDOM; public static boolean hideobjects = false;