- rgb_to_hsv (color2.red, color2.green, color2.blue, &h, &s, &v);
- v += delta;
- if (v >= 1.0) v = 1.0, delta = -delta;
- if (v <= 0.7) v = 0.7, delta = -delta;
- hsv_to_rgb (h, s, v, &color2.red, &color2.green, &color2.blue);
- if (XAllocColor (dpy, cmap, &color2))
+ rgb_to_hsv (color2.red, color2.green, color2.blue, &H, &S, &V);
+ V += delta;
+ if (V >= 1.0) V = 1.0, delta = -delta;
+ if (V <= 0.6) V = 0.7, delta = -delta;
+ hsv_to_rgb (H, S, V, &color2.red, &color2.green, &color2.blue);
+ color3 = color2;
+ if (XAllocColor (dpy, cmap, &color3))