[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.
- Re: Mapping float values to colors., (continued)
- Re: Mapping float values to colors., Marcus G. Daniels, 1999/07/27
- Re: Mapping float values to colors., Ken Cline, 1999/07/28
- Re: Mapping float values to colors., Fabio Mascelloni, 1999/07/27
- Re: Mapping float values to colors., Marcus G. Daniels, 1999/07/27
- *gdb* crashes when attempting to debug swarm app, Jason Alexander, 1999/07/27
- Re: *gdb* crashes when attempting to debug swarm app, Norberto Eiji Nawa, 1999/07/27
- Re: *gdb* crashes when attempting to debug swarm app, Marcus G. Daniels, 1999/07/27
- Re: *gdb* crashes when attempting to debug swarm app, Paul E. Johnson, 1999/07/28
- Re: Mapping float values to colors.,
Fabio Mascelloni <=
- Re: Mapping float values to colors., Marcus G. Daniels, 1999/07/28
- Re: Mapping float values to colors., Fabio Mascelloni, 1999/07/29
- Re: Mapping float values to colors., Marcus G. Daniels, 1999/07/29
- Re: Mapping float values to colors., Ken Cline, 1999/07/29