Re: Gimp color question



Vicki Stanfield <vicki dialupnet com> writes:
> 
> color.red = 99;
> color.green = 8;
> color.blue = 206;

These should be in the range 0-65535, Gimp is in 0-255.
(i.e., multiply by 255)

> No luck. I have the hex equivalent (#6308ce) if that would be
> easier.

gdk_color_parse (&color, "#6308ce");

Havoc




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]