add separate rgb inc option for cursor

This commit is contained in:
yugecin
2016-10-01 11:59:03 +02:00
parent 652bb4f2d0
commit 1a44b38636
4 changed files with 28 additions and 7 deletions

View File

@@ -97,11 +97,12 @@ public enum CursorColorOverrides {
}
private static Color nextRainbowColor() {
hue += Dancer.rgbhueinc / 10f;
hue += Dancer.rgbcursorhueinc / 100f;
return new Color(java.awt.Color.getHSBColor(hue / 360f, 1.0f, 1.0f).getRGB());
}
private static Color nextMirrorRainbowColor() {
hue += Dancer.rgbcursorhueinc / 100f;
return new Color(java.awt.Color.getHSBColor((hue + 180f) / 360f, 1.0f, 1.0f).getRGB());
}

View File

@@ -65,6 +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 MoverDirection moverDirection = MoverDirection.RANDOM;
public static boolean hideobjects = false;