Color Palettes

Ted Cox tedc at
Thu Nov 23 07:00:00 EST 1995

content-type: text/plain; charset=us-ascii
organization: USDA/NRCS
mime-version: 1.0
reply-to: grassu-list at
newsgroups: info.grass.user
originator: daemon at

grass at (Grass package) wrote:
>>   The quickest test I would use with r.colors is to take a simple raster map
>> with a single category and with r.colors do this:
>> r.colors map c=rules
>> > 1 brown
>> > end
>> Next, look at the rgb value placed for the brown in the $LOCATION/colr/map f
>> (brown is 191:127:63)
>[stuff deleted]
>Alternatively, you probably have a file called 'rgb.txt' somewhere in your
>UNIX tree. Do a 'find' to find this. It is a long listing of rgb values
>and official color names, like so: 0 0 0 black, and by using a simple 'grep'
>script you can select those lines that are of interest to you. or that have
>rgb values similar to a known value.
>Hope this helps,
>       Martijn
>P. Martijn van Leusen -------------------------------------------------------+
>Leverhulme Research Fellow, The Wroxeter Hinterland Project                  |
>University of Birmingham Field Archaeology Unit                              |
>Edgbaston, Birmingham B15 2TT  Phone +44 121 414 5513  Fax +44 121 414 5516  |
>E-mail P.M.van-Leusen at                                             |

Another option. - I use an X utiltiy called xcolorsel to pick the color
I want for my grass colr file. xcolorsel will display the rgb.txt colors,
then you can easily cut & paste into your grass colr file. You can find
xcolorsel on - It compiled cleanly on sunos.

More information about the grass-user mailing list