Dear all,

in r69683 I've added few lines to support colors hexadecimal numbers for
colors when prefixed by hash. That's the syntax often used in HTML (CSS)
and by other programs and formats.

Now instead of

d.vect map=hospitals color=80:170:255

you can do this:

d.vect map=hospitals color=#50AAFF

which is useful when you are copy pasting colors from somewhere (like the
gcolor2).

The limit is that it works only for the places where G_str_to_color() is
used. Most notably it doesn't work in r.colors' rules file.

This can help with writing scripts but be aware that # starts a comment in
Bash, so use quotes.

Please comment,
Vaclav


https://trac.osgeo.org/grass/changeset/69683
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to