Article View: comp.lang.postscript
Article #171wanted: formula to convert HSB <-> RGB
From: Dan Kelley
Date: Sun, 02 Aug 1992 21:42
Date: Sun, 02 Aug 1992 21:42
16 lines
1181 bytes
1181 bytes
What is the formula used by PostScript (colorimage operator, and
others) to convert HSB into RGB and vice versa? I have an application
that needs to do the translation. I've found a formula in Foley + Van
Dam's book, but I need to be sure to get the same results as
PostScript does when it translates.
Any code out there? (Or did I miss it in one of the PostScript
books?) Email appreciated.
Thanks.
--
Dan Kelley, Oceanography Department | kelley@cs.dal.ca
Dalhousie University | {uunet watmath}!dalcs!kelley
Halifax, Nova Scotia, CANADA, B3H 4J1 | (902) 494-1694
Technical Details
Message-ID:
<BsDLnC.406@cs.dal.ca>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!news.cs.indiana.edu!nstn.ns.ca!cs.dal.ca!open.dal.ca!kelleyShow Full Headers
Complete Article Headers
Newsgroups: comp.lang.postscript Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!news.cs.indiana.edu!nstn.ns.ca!cs.dal.ca!open.dal.ca!kelley From: kelley@open.dal.ca (Dan Kelley) Subject: wanted: formula to convert HSB <-> RGB Message-ID: <BsDLnC.406@cs.dal.ca> Summary: wanted: formula to convert HSB <-> RGB Keywords: color Sender: usenet@cs.dal.ca (USENET News) Nntp-Posting-Host: open.dal.ca Organization: OPEN, Dalhousie University, Halifax, NS, Canada Distribution: na Date: Sun, 2 Aug 1992 21:42:48 GMT Lines: 16