NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Re: ISo surface ...with custom color

Hi Rakesh,

>                  I am using visad for one of my application.I have a 3D 
> surface...and i have got it mapped Display.RGB. I want color of the surface 
> to be light yellow.
>                 Can anyone give me some idea how can i get it?

You can do this with ConstantMaps to Red, Green and Blue. See the way
the 'ConstantMap[] omaps1' is passed to DisplayImpl.addReference()
in visad/examples/Test41.java. For light yellow, try mapping
1.0 -> Red, 1.0 -> Green and 0.5 -> Blue.

Good luck,
Bill


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