[Glade-users] Colors



Hello,

I use a drawing area with 2 colors red and blue. But I don't know to get
other colors . For these two I use the following defintion that were
given me.

        blue.red   = 0;
        blue.green = 0;
        blue.blue  = 0xff * 0x100;
        gdk_colormap_alloc_color(colormap, &blue, FALSE, TRUE);

        red.red   = 0xff * 0x100;
        red.green = 0;
        red.blue  = 0;

Could someone explain how to get other colors (for example white) ?

Thanks.

Valery Avaux





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]