Adam wrote:
>  Hi.
> How can I set the RGB color in FLTK 2?
> 
> Widget Wid(0,0,10,10);
> Wid.color(); // ?


    Wid.color(0xff000000);      // red
    Wid.color(0x00ff0000);      // green
    Wid.color(0x0000ff00);      // blue

    ..eg:

    color(0xRRGGBB00)

    Documented here:
    http://fltk.org/doc-2.0/html/Color_8h.html#a0
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to