>>>>> Hamish <[EMAIL PROTECTED]> writes:
[...]
> Glynn:
>>> The problem is that we have both color_rgb (colors.h) and
>>> RGBA_Color (gis.h) structures, and we should deprecate one of them
>>> (probably color_rgb).
> Ivan:
>> Although I know no details, having two similar facilities usually
>> implies having the code base doubled, with only a slight increase of
>> functionality.
> RGBA_Color was recently added (as was RGB support for modules' CLI
> options) so 1) it could be used to pass RGB arround without having to
> call the display library
Good!
> and 2) we could handle a color value of 'none' without needing to
> pass a separate variable or rely on the palette index number set to
> -1. Currently the alpha channel is just set to 0 or 255 for
> full-transparency ('none') or full-opacity.
$ nl -ba include/gis.h
...
336 typedef struct
337 {
338 unsigned char r, g, b, a; /* red, green, blue, and alpha */
339 } RGBA_Color ;
340
341 typedef RGBA_Color RGB_Color;
...
$
s/RGB_Color/RGBA_Color/ ?
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev