|
|
> Anonymous wrote:
> > Hello Everyone!
> >
> > Can you please tell me how I can get RGB-values for the colors of the FLTK-Palette?
> > I want to set my OpenGL-Background-Color to the same as the FLTK-Background is, but therefore I do need RGB-Values. The color()-function only gives me the color number of the FLTK-Palette, but I cant use this in OpenGL.
> >
> > I assume, the color info is also somewhere in (argc,argv), because with these parameters FLTK adapts to the systems colors. But I have no idea, if this is true and how to get the color info out.
>
> In FLTK 1.1.x, use Fl::get_color(c, r, g, b).
>
> --
> ______________________________________________________________________
> Michael Sweet, Easy Software Products mike at easysw dot com
> Internet Printing and Publishing Software http://www.easysw.com
Thank you very much. Added the line, and it works!
After this answer i feel as if the mindbenders were too long around me. But please believe me: I was searching the docs and the forums for 3 days before i added the post. Maybe I need new glasses.
I guess my question gets the top ranking: "How can I get the color?" -> Use get_color!
Thanks again!
[ Direct Link to Message ] | |
|
| |