Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!cbmvax!carolyn From: carolyn@cbmvax.UUCP Newsgroups: comp.sys.amiga Subject: Re: RGB <-> HLS Message-ID: <1646@cbmvax.cbmvax.cbm.UUCP> Date: Wed, 8-Apr-87 16:07:31 EST Article-I.D.: cbmvax.1646 Posted: Wed Apr 8 16:07:31 1987 Date-Received: Sat, 11-Apr-87 07:46:48 EST References: <2848@sunybcs.UUCP> Reply-To: carolyn@cbmvax.UUCP (Carolyn Scheppner CATS) Organization: Commodore Technology, West Chester, PA Lines: 30 Keywords: color, palettes, conversion, confusion, help, aaaaaaaaahhhh In article <2848@sunybcs.UUCP> ugpete@sunybcs.UUCP (Peter Theobald) writes: > It's pretty strange... I found at least 5 different sources ('c' code, >textbooks, people, etc...) that explain RGB <-> HVS, but nowhere RGB <-> HLS!! > I NEED this algorithm fast, it's for a project and other people are >waiting for my part!!!! So please help!!!!! The excellent book "Procedural Elements for Computer Graphics" by David F. Rogers (McGraw-Hill) contains pseudocode for RGB <-> HLS. I would post the code but a. I don't have time to type it in b. It would be copyright infringement You could try calling New York City information (1-212-555-1212 ?) to get the number of McGraw-Hill. You may be able to order the book directly from them or from their massive professional book store in Manhattan (that's where I got mine). The book covers drawing algorithms, data encoding, fills, anti-aliasing, half-toning, clipping, hidden lines, ray tracing, illumination, texture mapping, and color. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Carolyn Scheppner -- CBM >>Amiga Technical Support<< UUCP ...{allegra,caip,ihnp4,seismo}!cbmvax!carolyn PHONE 215-431-9180 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=