[GRASS5] Other vectors colors

Radim Blazek Radim.Blazek at dhv.cz
Mon Aug 21 06:02:49 EDT 2000


fpacheco at adinet.com.uy wrote:

> We don't know how -please tell me how- to add more colors to vectors
> maps -red, blue, ...- then I modifyed the source code of d.vect to use
> RGB. It's very simple but It works. I send to you de source code
> (d.vect.rgb).
> I'll modify the source code of the d.dm command to work with this comand
> then my users can use it.
> I'm working on a graphic interface PostgreSQL-GRASS like the d.dm and a
> Visual SQL designer.  Fernando.

I think that we should not add new d.vect.* modules if possible.
We have already d.vect, d.vect.cats, d.area. It would be better
to merge all into one module d.vect instead of adding d.vect.rgb,
d.area.cat, d.area.rgb, d.dot, d.dot.cat, d.dot.rgb.

My suggestion for rgb colors is:

1. Write function D_translate_color_rgb (char *color, int *r, int *g,
int *b) 
   where input color could be: red or 255000000 or 1.000.000.00 
   (or 255_0_0, 255-0-0, 255-- or something similar)

2. Rewrite display modules from:

    color = D_translate_color();
    R_standard_color(color) ; 

   to:

    D_translate_color_rgb (opt2->answer, &r, &g, &b);    
    R_RGB_color ( r,g,b);


Radim

---------------------------------------- 
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo at geog.uni-hannover.de with
subject 'unsubscribe grass5'



More information about the grass-dev mailing list