RE: Colors



	Hi,

	I have problems too with gdk_color_alloc_color & gdk_color_parse.

	But this works fine:

	GdkColor White;
	White.red = White.green = White.blue = 0xFFFF;


	Fabrisio

-----Original Message-----
From: Valery Avaux [mailto:vavaux ulb ac be]
Sent: Sunday 8 April 2001 11:18
To: glade-users helixcode com; gtk-list gnome org
Subject: 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

**** DISCLAIMER **** 
"This e-mail and any attachments thereto may contain information 
which is confidential and/or protected by intellectual property 
rights and are intended for the sole use of the recipient(s) named above. 
Any use of the information contained herein (including, but not limited to, 
total or partial reproduction, communication or distribution in any form) 
by persons other than the designated recipient(s) is prohibited. 
If you have received this e-mail in error, please notify the sender either 
by telephone or by e-mail and delete the material from any computer. 
Thank you for your cooperation."





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