[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ZoomRaster background question
From: |
Benedikt Stefansson |
Subject: |
Re: ZoomRaster background question |
Date: |
Mon, 27 Jul 1998 16:43:47 -0700 |
Paul E. Johnson wrote:
> I don't see how to make the zoomraster background white instead of
> black. Can you tell me how?
>
Assume you have a raster called worldRaster and white is mapped to 1 in the
colormap.Also that the worldXSize and worldYSize paramteres are known. In
ObserverSwarm put something like this:
-eraseRaster {
// A method that overrides the default
// black background for raster and paints
// the raster white instead
[worldRaster fillRectangleX0: 0
Y0: 0
X1: worldXSize
Y1: worldYSize
Color: 1];
return self;
}
Regards,
-Benedikt
----------------
Benedikt Stefansson address@hidden
Department of Economics, UCLA Fax. (310) 825-9528
Los Angeles, CA 90095-1477 Tel. (310) 825-1777
==================================
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.
==================================