[GRASS-dev] lib fn to convert int color number to RGB values?
ivan at theory.asu.ru
Fri Feb 1 06:44:05 EST 2008
>>>>> Glynn Clements <glynn at gclements.plus.com> writes:
>>> RGBA_Color was recently added (as was RGB support for modules' CLI
>> Could the attached (untested) patch be of any help?
> First, you would need:
> -typedef struct
> +typedef struct RGBA_Color
> unsigned char r, g, b, a; /* red, green, blue, and alpha */
> } RGBA_Color ;
> Normally, we use structure tags rather than typedefs. The RGBA_Color
> structure and the STD_OPT enum are the only exceptions I see in
> But, replacing color_rgb with RGBA_Color should be straightforward.
That's what I believe I did with that patch.
More information about the grass-dev