better scale for rgb cursor color hue inc

This commit is contained in:
yugecin
2016-10-01 12:03:07 +02:00
parent 1a44b38636
commit 6404bbafdc
3 changed files with 5 additions and 5 deletions

View File

@@ -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());
}

View File

@@ -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;