On Mon, Sep 17, 2018 at 4:17 AM Pierre Roudier <pierre.roud...@gmail.com> wrote:
>
> Hi all,
>
> I am trying to write a little Python extension wrapping r.color to use
> different kind of strecthes,
>
> It should be pretty simple, basically just builkding rules on-the-fly
> and pass them to r.color. But I can't quite seem how to retrieve the
> GRASS color ramps details to create my ruleset.
>
> Is there any portable way to actually to actually passthe name of a
> GRASS color ramp, and get the details (colours) of that colour ramp?

Maybe you can find some code here:

gui/wxpython/modules/colorrules.py

best
Markus
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to