Class GDK2.Color

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

GDK2.Color GDK2.Color(void color_or_r, void g, 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.