pike.hubbe.net

[Top]
GTK
GTK.ColorSelection
previousGTK.ColorSelection()->get_color() GTK.ColorSelection()->set_update_policy()next

Method GTK.ColorSelection()->set_color()


Method set_color

object(GTK.ColorSelection) GTK.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


Extracted from Pike v7.3 release 11 at 2001-11-03.