[GRASS-dev] [bug #5243] (grass) d.vect: better random color generation

Hamish hamish_nospam at yahoo.com
Sat Nov 18 02:17:59 EST 2006


Martin Landa wrote:
> I have tried to implement random coloring using
> G_make_random_colours(), see the attached patch for d.vect.

do multiple vector features with the same cat value have the same color?

general question: how to "lock-in" nice random colors once you find
them? e.g. populate GRASSRGB attribute column to survive d.redraw and
use with ps.map.


> Then I will also try to implement random colors based on the given
> attribute column.

how about "true" color scaling min->max like d.vect.thematic does with
value-bands?


cheers,
Hamish




More information about the grass-dev mailing list