Pike v8.0 release 1116

Method GTK1.ColorSelection()->set_color()


Method set_color

GTK1.ColorSelection set_color(array color)

Description

You can set the current color explicitly by calling this function with an array of colors (floats). The length of the array depends on whether opacity is enabled or not. Position 0 contains the red component, 1 is green, 2 is blue and opacity is at position 3 (only if opacity is enabled, see set_opacity()) All values are between 0.0 and 1.0