[GRASS-user] ps.map: specifying colors

The input file for a ps.map vareas has a color specified as:
color 33:00:00

When I run the ps.map command I'm told this is an invalid color for vareas.

When I chage it to:
color 3:0:O

I get the same error.

This format worked in the past and according to the ps.map manual page it
should work here. What syntax error do I miss seeing?

Rich

On Mon, 15 May 2023, Rich Shepard wrote:

The input file for a ps.map vareas has a color specified as:
color 33:00:00
When I run the ps.map command I'm told this is an invalid color for vareas.

Here's the exact output of one try:
color ff:ff:ff : illegal border color request
color 33:f:0 : illegal color request (vareas)
fcolor 33:f:0 : illegal color request (vareas)

The latter two started as pairs for green and blue, too.

Rich

On Mon, 15 May 2023 at 11:39, Rich Shepard <rshepard@appl-ecosys.com> wrote:

On Mon, 15 May 2023, Rich Shepard wrote:

The input file for a ps.map vareas has a color specified as:
color 33:00:00
When I run the ps.map command I’m told this is an invalid color for vareas.

Here’s the exact output of one try:
color ff:ff:ff : illegal border color request
color 33:f:0 : illegal color request (vareas)
fcolor 33:f:0 : illegal color request (vareas)

Hi Rich,

The r:g:b format supports 0-255, not the hexadecimal colors, so that’s why ff does not work. With display commands, you can also use #rrggbb (#RRGGBB). I would have to check if that works with ps.map or not.

In your previous email, you have color 3:0:O. The third number is capital O, not 0, otherwise it should work.

HTH,

Vaclav


Vaclav Petras
Getting benefits from GRASS GIS? Check new ways to contribute back: https://opencollective.com/grass