Albrecht Schlosser schrieb:
> On 27.05.2010, at 11:05, MacArthur, Ian (SELEX GALILEO, UK) wrote:
> Not directly, but this trick should do it:
>
> unsigned rgb = (unsigned)fl_color_average((Fl_Color)i, FL_WHITE, 1.0);
>
> r = rgb>> 24 & 255;
> g = rgb>> 16 & 255;
> b = rgb>> 8 & 255;
>
> i can be any color (index or RGB value).
> FL_WHITE can be replaced with any color.
>
> Disclaimer: untested code!

Now tested code, and it works fine. Thank you, I prefer to use the more 
simple choose of color.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to