[GRASS-user] Color names?

Glynn Clements glynn at gclements.plus.com
Sat Jan 17 06:10:14 EST 2009


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>


More information about the grass-user mailing list