Hi, what I want to do is picking up a color from an Fl_Color_Chooser (widget) then convert it to an Fl_Color (type) to use it in a drawing function. What I tried so far looks like this:
Fl_Color_Chooser *Co; Fl_Color c = fl_rgb_color(Co->r(), Co->g(), Co->b()); This unfortunately always ends up black, because the widget's r(), g(), b() returns a value between 0 and 1.0, and as far as I know fl_rgb_color expects values between 1-255. Anyone can give me a good solution for this conversion? Or should I simply multiply the rgb values with 255and round? Regards, katz _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

