[GRASS-dev] Re: [GRASS GIS] #170: r.colors: make nice random colors
like r.watershed
GRASS GIS
trac at osgeo.org
Mon May 19 03:55:06 EDT 2008
#170: r.colors: make nice random colors like r.watershed
--------------------------+-------------------------------------------------
Reporter: hamish | Owner: grass-dev at lists.osgeo.org
Type: enhancement | Status: new
Priority: minor | Milestone: 6.4.0
Component: default | Version: svn-develbranch6
Resolution: | Keywords: r.colors
--------------------------+-------------------------------------------------
Comment (by glynn):
Replying to [ticket:170 hamish]:
> r.watershed has some color rule creation code it in which makes the
random rules not quite pastel in nature, but cool. it's a lot more
pleasant than r.color's color=random method.
>
> see the r.watershed examples here:
> http://grass.osgeo.org/screenshots/raster.php
>
> it would be nice to move that rule generation code into libgis and then
add a new "r.colors color=random_cool" or similar option.
> (and simplify r.watershed in the process)
If I'm reading the code correctly, it creates a set of random colours,
then replaces any dark colours with non-random colours selected from
generated gradients. IOW, it's a fudge which shouldn't be elevated to a
library function.
If you just want to eliminate dark or saturated colours, it would be
preferable to add transformation functions to adjust and/or clip the
intensity, saturation and hue, which could then be applied to any existing
colour rule, not just random colours.
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/170#comment:2>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list