agollum@engr.uky.edu (Kenneth Herron) (06/26/89)
I'm writing a program to convert Amiga IFF images to cross-stitch patterns (trying to get my wife interested in the darn thing :-). Part of the conversion requires averaging the colors of several pixels and reducing the color table by averaging "close" colors. The methods I have in mind for these steps requires the hue, saturation, & luminence of the colors in question. Does anyone have the formulas to convert from RGB to HSL? Or know of a good algorithm for doing these things? (more details available on request) Thanx in advance, Kenneth Herron