color control


I am using VisAD to display water volume over a
terrain and I am trying to get more control over the
colors used to display water volume.

Picture of my current state:

I am using a scalar map for water volume.
 new  ScalarMap((RealType) precipitation,Display.RGB);

But I would really like to be able to map specific
values and ranges to specific colors.  0 to green, .01
to 1.0 mapped to light blue, 1.01 - 5.0 to dark blue,

Any suggestions on how I can accomplish this type of
color mapping?


Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes

  • 2004 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: