Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!dciem!nrcaer!cognos!geovision!alastair From: alastair@geovision.UUCP (Alastair Mayer) Newsgroups: comp.graphics Subject: Re: Color conversion Message-ID: <199@geovision.UUCP> Date: Thu, 8-Oct-87 11:48:48 EDT Article-I.D.: geovisio.199 Posted: Thu Oct 8 11:48:48 1987 Date-Received: Sun, 11-Oct-87 08:24:44 EDT References: <337@ndmath.UUCP> Reply-To: alastair@geovision.UUCP (Alastair Mayer) Organization: Geovision Corporation, Ottawa, Canada Lines: 18 In article <337@ndmath.UUCP> milo@ndmath.UUCP (Greg Corson) writes: >Does anyone have a formulia for converting color from Red-Green-Blue to >hue-saturation-intensity and back again? > >Greg Corson >{pur-ee,rutgers,uunet}!iuvax!ndmath!milo See Foley and Van Dam's _Fundamentals_of_Interactive_Computer_Graphics_ (Addison-Wesley, 1982. ISBN 0-201-14468-9). The last chapter discusses color models for raster graphics, and there are listings (in Pascal) for two procedures to convert between Red-Green-Blue and Hue-Saturation-Value (pp. 615,616). -- Alastair JW Mayer BIX: al UUCP: ...!utzoo!dciem!nrcaer!cognos!geovision!alastair "What we really need is a good 5-cent/gram launch vehicle."