[GRASS-user] Color names?

Rainer M Krug r.m.krug at gmail.com
Mon Jan 19 07:35:04 EST 2009


Thanks a lot - that answers my question

Rainer

On Sat, Jan 17, 2009 at 1:10 PM, Glynn Clements
<glynn at gclements.plus.com> wrote:
>
> Rainer M Krug wrote:
>
>> Hi
>>
>> I am looking for a list of the available color names one can use
>> (e.g.in r.colors), but I couldn't find them. Could anybody provide me
>> with a link of where I can find them or a list of them?
>
> lib/gis/color_str.c contains the list, as does include/colors.h, and
> the output from d.colorlist.
>
> FWIW, the list is:
>
>        black
>        red
>        green
>        blue
>        yellow
>        cyan
>        magenta
>        white
>        grey (alias gray)
>        orange
>        aqua
>        indigo
>        violet (alias purple)
>        brown
>
> This list is used for most GRASS commands, but *not* by ps.map, which
> has its own table. Although ps.map supports the same set of names, the
> actual colours differ in a few cases:
>
>        name    ps.map          other
>                R    G    B     R    G    B
>
>        grey    0.75 0.75 0.75  0.50 0.50 0.50
>        aqua    0.00 0.75 0.75  0.40 0.50 1.00
>        brown   0.75 0.50 0.25  0.70 0.30 0.10
>
> --
> Glynn Clements <glynn at gclements.plus.com>
>



-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Faculty of Science
Natural Sciences Building
Private Bag X1
University of Stellenbosch
Matieland 7602
South Africa


More information about the grass-user mailing list