more color variation in smaller groups

This commit is contained in:
yugecin 2017-12-22 12:52:22 +01:00
parent 22d2b0be86
commit df1afd98c3

View File

@ -1463,7 +1463,7 @@ public class Game extends ComplexOpsuState {
});
replays = new LinkedList<>();
float hueshift = 360f / files.length;
float hueshift = 360f / files.length + 18f;
float hue = 0;
for (File file : files) {
Replay r = new Replay(file);
@ -1473,7 +1473,8 @@ public class Game extends ComplexOpsuState {
BubNotifListener.EVENT.make().onBubNotif("could not load replay " + file.getName(), Colors.BUB_RED);
continue;
}
replays.add(new ReplayPlayback(displayContainer, r, new Color(java.awt.Color.getHSBColor((hue) / 360f, 1.0f, 1.0f).getRGB())));
Color color = new Color(java.awt.Color.getHSBColor((hue) / 360f, 1.0f, 1.0f).getRGB());
replays.add(new ReplayPlayback(displayContainer, r, color));
hue += hueshift;
}