[GRASS-dev] color tables

Hamish hamish_b at yahoo.com
Sun Sep 13 05:49:03 EDT 2009

Glynn wrote:
> These should be generated as part of the build process.
> Otherwise, there's no guarantee that they actually match the colour
> tables in lib/gis/colors 

great, looks good.

One thing I notice is that in grass7 the D_move_abs(), D_cont_rel()
line widths are heavier than they were in 6.x. (2px vs 1px wide)
Is it possible to make 1px again? An explicit D_line_width(0) just
makes it grey, I guess it has to be moved 1/2 a pixel from centered
on grid lines to centered mid-cell?? It seems to work ok in d.legend
which is pretty much the same code.

Also I notice that for d.colortable and d.legend that with D_end()
to close the polygon there is a pixel missing from the start/end
position here. see attached.  (hmmm, D_end() is a no-op?)

> (shouldn't those have been moved to lib/raster?).

fwiw they are used by v.colors too. (which will eventually be free
of r.* hacks)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: gr7_D_line_end_knick.png
Type: image/png
Size: 3982 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20090913/87822376/gr7_D_line_end_knick-0001.png

More information about the grass-dev mailing list