Re: color control

On Tue, 13 Jan 2004, Jay Parsons wrote:

> Thanks, I got the color table and ColorControl to work
> in my app.
>
> I would like to control which values are then assigned
> to each color.
> For example, my min=0 and max=10
> and I have 6 colors in my table c[3][6]
>
> can I map
>
> color - c0     c1     c2     c3     c4     c5
> value -  0   .1-1   1.1-3   3.1-5  5.1-7   7.1+
>
>
> Can I use the setFunction method in ColorControl to
> for this?

Yes, but you can do it with setTable() too. You just
need to figure out the linear mapping between your
precipitation values and your table entries. Be prepared
to experiment a little.

Good luck,
Bill


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