[GRASS5] Colors in the Grass Monitor
Glynn Clements
glynn.clements at virgin.net
Wed Aug 1 18:41:11 EDT 2001
pcpa at conectiva.com.br wrote:
> I am having some trouble trying to understand the color handling from the
> grass monitor "point of view".
>
> I hope this is not too much sample data to sent to the list...
>
> My monitor, in "debug mode" prints:
"debug mode"? I suspect that you're using an outdated version of the
code.
> From now on, it sends a command to fill a line before starting the raster
> data, then sends RASTER_CHAR to draw the picture.
>
> I am expecting that RESET_COLORS would be sending me the RGB values of the
> pixels in the image, and than, RASTER_CHAR would send me the indexes in
> that color table.
Yep.
> But that's not what is happening. So, it seens that
> RESET_COLORS should be ignored, and I should create a "standard colormap".
> It also seens that only FLOAT colormaps are supported.
>
> Since I initialize the "colormap" with the standard colors, calling d.vect and
> d.area draws everything correctly, but d.rast currently only shows gray
> images.
That might be a bug. If it's still in the current version of the code,
report it.
--
Glynn Clements <glynn.clements at virgin.net>
More information about the grass-dev
mailing list