MASON-INTEREST-L Archives

January 2013

MASON-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Monospaced Font
Show HTML Part by Default
Condense Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Content-Type:
multipart/alternative; boundary=047d7b66f12b9b13a604d49d5490
Sender:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Subject:
From:
Paul Smaldino <[log in to unmask]>
Date:
Thu, 31 Jan 2013 17:41:21 -0500
In-Reply-To:
MIME-Version:
1.0
Reply-To:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Parts/Attachments:
text/plain (860 bytes) , text/html (1588 bytes)
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


ATOM RSS1 RSS2