[GRASS-dev] any way to know color assigned to a cell?
Markus Neteler
neteler at itc.it
Thu Apr 19 03:53:21 EDT 2007
Bob Covill wrote on 04/18/2007 09:02 PM:
> On Wed, 2007-04-18 at 17:19 +0100, Glynn Clements wrote:
>
>> Bob Covill wrote:
>>
>>
>>>>>> Yeah; we could probably do with a "r.what.colors" module.
>>>>>>
>>>> Michael:
>>>>
>>>>> I was contemplating a wxPython histograming module, like the TclTk
>>>>> profiling module, and liked the option in d.histogram of being able to
>>>>> use the color table for the histogram colors. But this seems like a
>>>>> pretty intensive batch of calculations to do it.
>>>>>
>>>> you could try "r.profile -c" with a profile which starts and stops at
>>>> the cell center (length=0). Also it should be very simple to add a flag
>>>> just like "r.profile -c" to r.what, if that helps.
>>>>
>>> I have a version of r.what that I modified to optionally output RGB
>>> color. If interested I could commit to CVS?
>>>
> I have committed the change to r.what. It now has a "-r" flag (-c was
> taken) that will output the RGB for the selected point.
>
I didn't follow this in detail, but with this new -r flag, what is
r.what.color providing?
Is there a need to keep it?
Markus (who always has an eye on too similar modules)
------------------
ITC -> dall'1 marzo 2007 Fondazione Bruno Kessler
ITC -> since 1 March 2007 Fondazione Bruno Kessler
------------------
More information about the grass-dev
mailing list