Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!rutgers!att!att!mcdchg!tellab5!mtcchi!thj From: thj@mtcchi.uucp (XT0221000-Tom Hjellming(ZG90210)0000) Newsgroups: comp.windows.ms.programmer Subject: RGB <--> Hue/Sat/Lum conversion? Summary: How does one convert to/from RGB to Hue/Saturation/Luminosity? Keywords: Windows RGB color Message-ID: <1990Nov27.234745.24133@mtcchi.uucp> Date: 27 Nov 90 23:47:45 GMT Distribution: comp Organization: Memorex Telex Corporation NSBG/STP Lines: 22 I'm looking for some procedures (or better yet, some formulas) for converting between RGB format like all the Windows APIs use and Hue/Saturation/Luminosity and vice versa. The Windows 3.0 color control panel allows users to design custom colors (under Color Palette) using either/both formats. I would like to do a similar thing in my application. Does anyone know how or have pointers to books that might discuss it? I've checked Petzold's 2nd edition and Peter Norton's new Windows book, but no dice. Thanks in advance, Tom Hjellming Analysts International Corporation (AiC) -- Tom Hjellming Software Consultant Analysts International Corp. (AiC) Schaumburg, IL