Class GTK2.GdkColor

Description

The GDK2.Color object is used to represent a color. When you call GDK2.Color(r,g,b) the color will be allocated from the X-server. The constructor can return an exception if there are no more colors to allocate. NOIMG


Method _destruct

protected GDK2.Color _destruct()

Description

Destroys the color object. Please note that this function does not free the color from the X-colormap (in case of pseudocolor) right now.


Method create

GTK2.GdkColor GTK2.GdkColor(object|int color_or_r, int|void g, int|void b)

Description

r g and b are in the range 0 to 255, inclusive. If color is specified, it should be an Image.Color object, and the only argument.