[GRASS5] Re: [bug #3049] (grass) ps.map doesn't like the color purple

Maciek Sieczka werchowyna at pf.pl
Thu Mar 3 16:45:47 EST 2005


From: "Hamish" <hamish_nospam at yahoo.com>
Sent: Thursday, March 03, 2005 2:08 AM
Subject: Re: [GRASS5] Re: [bug #3049] (grass) ps.map doesn't like the color 
purple


>> > ps.map/ps_colors.c
>> >
>> >    {"white",   1.00, 1.00, 1.00},
>> >    {"black",   0.00, 0.00, 0.00},
>> >    {"red",     1.00, 0.00, 0.00},
>> >    {"green",   0.00, 1.00, 0.00},
>> >    {"blue",    0.00, 0.00, 1.00},
>> >    {"yellow",  1.00, 1.00, 0.00},
>> >    {"magenta", 1.00, 0.00, 1.00},
>> >    {"cyan",    0.00, 1.00, 1.00},
>> >    {"aqua",     0.00, 0.75, 0.75},
>> >    {"grey",    0.75, 0.75, 0.75},
>> >    {"gray",    0.75, 0.75, 0.75},
>> >    {"orange",  1.00, 0.50, 0.00},
>> >    {"brown",   0.75, 0.50, 0.25},
>> >    {"purple",  0.50, 0.00, 1.00},
>> >    {"violet",  0.50, 0.00, 1.00},
>> >    {"indigo",   0.00, 0.50, 1.00}
>> >
>> > Do the other colors of this list work?
>>
>> Yes, only purple doesn't.
>
>
> cyan should break too.

cyan works ok for sure. Here's how I called it:

vlines odra
width 3
color cyan
end

Only purple fails.

Maciek

> G_color_values() in  lib/gis/named_colr.c lists the above values.
>
>
> include/colors.h doesn't include those two (and thus they don't show up
> in D_color_list() et al.).
>
> If anyone changes MAXCOLORS in colors.h, let me know because I'll have
> to redo some of the color=none code in the display modules.
>
> Hamish 




More information about the grass-dev mailing list