Article View: comp.windows.x.pex
Article #155PEX Color selection
From: Michiel Bruschke
Date: Thu, 08 Oct 1992 06:05
Date: Thu, 08 Oct 1992 06:05
23 lines
1311 bytes
1311 bytes
I am trying to plot a shaded 3-D surface with colour contours. The contours need to be in a intuitively logical order. Right now I am setting up the colors by choosing HSV values. I set the Saturation and Value to .95 and sweep Hue from blue to red. I then convert the HSV values to RGB using an algorithm from Foley and van Dam "Fundamentals of Interactive Computer Graphics". The problem is that I end up with a number of colors that are hard to distinguish in the green range (with only 11 contours). I tried skewing the Hue sweep, but that results in shifting the problem to the reds. Does anybody have a better algorithm for setting up an arbitrary range of colors ? An algorithm that would also vary the saturation would probably offer some improvement. Any thoughts/suggestions are greatly appreciated Thanks, mike P.S I am using SunPHIGS 2.0
Technical Details
Message-ID:
<BvsGww.EqK@news.udel.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!news.udel.edu!braque!bruschkeShow Full Headers
Complete Article Headers
Newsgroups: comp.windows.x.pex Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!news.udel.edu!braque!bruschke From: bruschke@braque (Michiel Bruschke) Subject: PEX Color selection Message-ID: <BvsGww.EqK@news.udel.edu> Sender: usenet@news.udel.edu Nntp-Posting-Host: braque.me.udel.edu Organization: Department of Mechanical Engineering/University of Delaware Date: Thu, 8 Oct 1992 06:05:20 GMT Lines: 24