move color structs to colors.h?
|Reported by:||hamish||Owned by:|
|Keywords:||needinfo, RGBA_Color, G_str_to_color()||Cc:|
in trunk the RGBA_Color struct has been moved into include/raster.h. As its use is more general than just raster maps (e.g. d.graph and D_symbol() use it) IMO there's no reason for it to be there and it should be moved into include/colors.h or back into gis.h.
Also, any objections to changing G_str_to_color() in trunk to use
unsigned char instead of
int for R,G,B? It would save some casting.