swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mapping float values to colors.


From: Fabio Mascelloni
Subject: Re: Mapping float values to colors.
Date: Wed, 28 Jul 1999 17:34:59 +0200

"Marcus G. Daniels" wrote:
> 
> 
> The addition of the last line should do the trick.  The Swarm 2.0 release
> won't require this magic, and will have an unsetColor: method as well.
> 
>   colormap = [Colormap create: [self getZone]];
>   [colormap setColor: 1 ToName: "orange"];  // multiple colors, whatever...
>   [raster setColormap: colormap];
>   [raster setWidth: [self getWidth] Height: [self getHeight]];

I've added the last line of the snippet I previously posted,but after
about four 
iterations (during which however the Raster remains black), the program
receives a
 "Segmentation fault 0x61053592 in _size_of_stack__reserve()" when
[raster setWidth: [self getWidth] Height: [self getHeight]] is invoked.
Another thing I've noticed is that the raster's width is greater that
its height even if I set
the same value both for width and height.
Fabio.

                  ==================================
   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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]