Xref: utzoo comp.graphics:6269 comp.sys.amiga:35876 Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!ukma!ukecc!agollum From: agollum@engr.uky.edu (Kenneth Herron) Newsgroups: comp.graphics,comp.sys.amiga Subject: RGB to Hue/Saturation/Luminence Message-ID: <2922@ukecc.engr.uky.edu> Date: 25 Jun 89 19:51:37 GMT Reply-To: agollum@ukecc.UUCP (Kenneth Herron) Followup-To: comp.graphics Distribution: usa Organization: Way down south in the land of Basketball Lines: 11 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