Content-Type: |
multipart/alternative; boundary=047d7b66f12b9b13a604d49d5490 |
Sender: |
|
Subject: |
|
From: |
|
Date: |
Thu, 31 Jan 2013 17:41:21 -0500 |
In-Reply-To: |
|
MIME-Version: |
1.0 |
Reply-To: |
|
Parts/Attachments: |
|
|
You might just use this:
sim.util.gui.SimpleColorMap(-1,1,Color.red,Color.blue);
That won't give you white in the middle, but it's a start. If you insist on
white for the middle, you'll need to use a colorTable.
-Paul
On Thu, Jan 31, 2013 at 5:34 PM, Sean Luke <[log in to unmask]> wrote:
> It doesn't: you'll have to make your own ColorMap.
>
> Sean
>
> On Jan 31, 2013, at 5:19 PM, Joey Harrison wrote:
>
> > I'm trying to make a color gradient that interpolates between the
> following:
> > -1 : red
> > 0 : white
> > 1 : blue
> >
> > Has anyone done something like this in MASON? I don't think
> SimpleColorMap does this.
> >
> > Thanks,
> > Joey
>
--
______________________________________________________________
Paul Smaldino, Ph.D.
Postdoctoral Research Fellow
Center for Advanced Modeling in the Social, Behavioral, and Health Sciences
Johns Hopkins University
http://www.smaldino.com
|
|
|