[GRASS-dev] any way to know color assigned to a cell?

Glynn Clements glynn at gclements.plus.com
Sun Apr 22 14:59:10 EDT 2007

Hamish wrote:

> > Yeah; we could probably do with a "r.what.colors" module.
> I notice r.what.color outputs colors as follows:
> fprintf(stdout, "%d: %02x:%02x:%02x\n", ival, red, grn, blu);
> ie  ff:ff:ff
> the rest of GRASS uniformly uses/expects %d:%d:%d (255:255:255) for that.

Ah; I'll add an option for the output format, defaulting to %d:%d:%d.

Glynn Clements <glynn at gclements.plus.com>

More information about the grass-dev mailing list