GimpUi.ColorSelector.new

function new(selector_type: GObject.Type, rgb: Gimp.RGB, hsv: Gimp.HSV, channel: GimpUi.ColorSelectorChannel): Gtk.Widget {
    // Gjs wrapper for gimp_color_selector_new()
}
  

Creates a new GimpUi.ColorSelector widget of type selector_type.

Note that this is mostly internal API to be used by other widgets.

Please use GimpUi.ColorSelection.new for the "GIMP-typical" color selection widget. Also see GimpUi.ColorButton.new.

Retunn value: the new GimpUi.ColorSelector widget.

selector_type

The GLib.Type of the selector to create.

rgb

The initial color to be edited.

hsv

The same color in HSV.

channel

The selector's initial channel.

Returns