ColorPicker

    Category: Core

    Color picker control.

    Properties

    void ( Color color )
    void ( Color color )
    get_presets ( ) const

    Theme Properties

    • color_changed ( color )

    Emitted when the color is changed.


    • preset_added ( Color color )

    • preset_removed ( color )

    Emitted when a preset is removed.

    Description

    Control node displaying a color picker widget. It’s useful for selecting a color from an RGB/RGBA colorspace.

    Setterset_pick_color(value)
    Getterget_pick_color()

    The currently selected color.


    • deferred_mode

    Setterset_edit_alpha(value)
    Getteris_editing_alpha()

    If , shows an alpha channel slider (transparency).


    • raw_mode

    If , allows the color R, G, B component values to go beyond 1.0, which can be used for certain special operations that require it (like tinting without darkening or rendering sprites in HDR).

    Method Descriptions

    • void add_preset ( Color color )

    Adds the given color to a list of color presets. The presets are displayed in the color picker and the user will be able to select them. Note: the presets list is only for this color picker.


    • void erase_preset ( color )

    Returns the list of colors in the presets of the color picker.