FLTK logo

Re: how con I GET RGB values from FLTK-Elements?

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.opengl  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: how con I GET RGB values from FLTK-Elements? Anonymous Mar 16, 2006  
 
> 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 ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.