Manager: color tweak

This commit is contained in:
David Anderson 2014-08-10 15:47:04 -07:00
parent 0bbcf28d94
commit d83ebf4476
1 changed files with 2 additions and 1 deletions

View File

@ -2626,7 +2626,8 @@ static void hsv2rgb(
void color_cycle(int i, int n, wxColour& color) {
double h = (double)i/(double)n;
double r, g, b;
double v = .4 + (i % 3)*.1;
double v = .6;
if (n > 6) v = .5 + (i % 3)*.125;
// cycle through 3 different brightnesses
hsv2rgb(h*6, .5, v, r, g, b);
unsigned char cr = (unsigned char) (r*256);