FLTK logo

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 ]

how con I GET RGB values from FLTK-Elements? Anonymous Mar 16, 2006  
 
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.


Thanks for your help!!

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'.