[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Default colors in Swarm 1.x
From: |
Paul E. Johnson |
Subject: |
Re: Default colors in Swarm 1.x |
Date: |
Sun, 01 Nov 1998 19:16:11 -0600 |
Perrone Alessandro wrote:
>
> Hi all
> Has anyone the names of the default colors implemented in Swarm?
> In my model I have to plot several graphs (about 200).
> I know the following names (colors)
> [colormap setColor: 0 ToName: "red"];
> [colormap setColor: 1 ToName: "green"];
> [colormap setColor: 2 ToName: "yellow"];
> [colormap setColor: 3 ToName: "orange"];
> [colormap setColor: 4 ToName: "purple"];
> [colormap setColor: 5 ToName: "grey50"];
> [colormap setColor: 6 ToName: "black"];
> [colormap setColor: 7 ToName: "blue"];
> [colormap setColor: 8 ToName: "white"];
> [colormap setColor: 9 ToName: "LightCyan1"];
> [colormap setColor: 10 ToName: "PaleTurquoise"];
> [colormap setColor: 11 ToName: "Turquoise1"];
> [colormap setColor: 12 ToName: "Turquoise3"];
In Zoomrasters you can assign your own colormap, but in EZGraphs it is
not so easy.
In EZGraph.m, you see the colors swarm defines for that app.
#define NUMCOLORS 12
const char graphColors[NUMCOLORS][16] =
// { "Red", "Green", "Yellow", "Pink", "SeaGreen",
// "Magenta", "Purple", "DarkGreen", "Goldenrod", "Black" };
{ "Red", "Blue", "Orange", "DarkGreen", "Magenta",
"Purple",
"Green", "Yellow", "Cyan", "SeaGreen", "Goldenrod", "Black"
};
Lately I've been considering subclassing from EZGraph to specify more
colors to deal with a problem like yours. If I get serious, I'll let
you know.
If you didn't find a copy of the rgb.txt file yet, let me know, I'll
email it to you.
--
Paul E. Johnson email: address@hidden
Dept. of Political Science http://lark.cc.ukans.edu/~pauljohn
University of Kansas Office: (785) 864-9086
Lawrence, Kansas 66045 FAX: (785) 864-5700
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.
==================================