Re: Alpha Blending?

Hi Kevin,

>  > Sure. Combine all your Sets in a FieldImpl with MathType
>  > something like (index -> (r, g, b, Set(x, y))). Each Set
>  > has a different color, and you can toggle the whole thing
>  > on and off in one step.
>  >
> OK, I think this makes sense.  Use an Integer1DSet as my domain (index)
> and map each Irregular2DSet to the domain. (index -> Set(x,y)).
> But how is this done since a FunctionType requires (MathType, MathType)
> and what we have above is (MathType, ThingImpl)?  Can I wrap the Set in
> a RealTupleType which is a MathType?

Oops, That should be (index -> (r, g, b, SetType(x, y))).

> Also, how do I get the colors involved?  Do I make r, g, and b RealTypes
> and give them values as a RealTuple and map them to ScalarMaps?

Yes, except that r, g, b and a Set with type SetType(x, y)
will be 4 members of a Tuple, not a RealTuple.

Good luck,

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