
24 Jun
2004
24 Jun
'04
8:32 a.m.
"Niels" == Niels van Vliet <van-vl_n@lrde.epita.fr> writes:
+FROM_X_TO_RGB(hsi); +FROM_RGB_TO_X(hsi); +FROM_X_TO_RGB(hsl); +FROM_RGB_TO_X(hsl); +FROM_X_TO_RGB(hsv); +FROM_RGB_TO_X(hsv); +FROM_X_TO_RGB(nrgb); +FROM_RGB_TO_X(nrgb); +FROM_X_TO_RGB(xyz); +FROM_RGB_TO_X(xyz); +FROM_X_TO_RGB(yiq); +FROM_RGB_TO_X(yiq); +FROM_X_TO_RGB(yuv); +FROM_RGB_TO_X(yuv);
These pairs of guys should merged. Can't you find a means to store their names in a map and use that map instead of the series of if? That would be more extensible.