Browse Source

prettied up the colors

Fabio Arnold 10 years ago
parent
commit
553060230c

+ 2 - 2
src/de/tudarmstadt/informatik/hostage/ui2/helper/ColorSequenceGenerator.java

@@ -14,12 +14,12 @@ public class ColorSequenceGenerator {
 			reverseIndex = (reverseIndex << 1) | (index & 1);
 			index >>= 1;
 		}
-		float hue = ((float)reverseIndex / (float)(1 << BIT_COUNT) + 0.6f) % 1.0f;
+		float hue = ((float)reverseIndex / (float)(1 << BIT_COUNT) + 0.0f) % 1.0f;
 
 		float[] hsv = new float[3];
 		hsv[0] = 360.0f * hue;
 		hsv[1] = 0.7f; // not fully saturated
-		hsv[2] = 1.0f;
+		hsv[2] = 0.9f;
 
 		return Color.HSVToColor(hsv);
 	}