On 13 Aug 2007, at 19:48, Mariwan wrote: > As I understood (may be I am wrong!), > > inline Fl_Color fl_rgb_color(uchar g) > > return the 24 bit version of the "g" color.
No - I think it returns the RGB version of the gray shade "g" - from a 256 element gray ramp from black at 0 to white at 255. Not a "colour" at all. > But it is not working... > > Don't use 50 , use any other color like 15.. > I think I get wrong color drawn! when I use > > window->color(fl_rgb_color(15)); This is a shade of gray I think. > > it is not the same as > window->color(15); This is whatever colour fltk has mapped to index 15 - probably not a gray element at all. Enumerations.h lists it as FL_SELECTION_COLOR so presumably it will pick up whatever the default selection colour is in your setup - probably a darkish blue at a guess?? _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

