Pike v8.0 release 1738

Class GDK1.Color

Description

The GDK1.Color object is used to represent a color. When you call GDK1.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 create

GDK1.Color GDK1.Color(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.


Method destroy

GDK1.Color destroy()

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.