shift hue on each new object

This commit is contained in:
yugecin
2016-09-30 09:09:14 +02:00
parent bad3add7c4
commit e126edbff7
3 changed files with 18 additions and 2 deletions

View File

@@ -159,6 +159,7 @@ public class Slider extends GameObject {
this.data = data;
this.color = color;
this.comboEnd = comboEnd;
this.color = Utils.nextColor();
updatePosition();
// slider time calculations
@@ -183,7 +184,7 @@ public class Slider extends GameObject {
public void draw(Graphics g, int trackPosition, boolean mirror) {
Color orig = color;
if (mirror) {
color = Utils.shiftHue(color, 180d);
color = Utils.currentShiftColor();
}
int timeDiff = hitObject.getTime() - trackPosition;