Inherits: BoxContainer < Container < Control < CanvasItem < Node < Object

Category: Core

Brief Description

Color picker control.

Member Functions

void add_preset ( Color color )


  • color_changed ( Color color )

Emitted when the color is changed.

Member Variables

  • Color color - The currently selected color.
  • bool edit_alpha - If true, shows an alpha channel slider (transparency).
  • bool raw_mode - If true, 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).


This is a simple color picker Control. It’s useful for selecting a color from an RGB/RGBA colorspace.

Member Function Description

  • void add_preset ( Color color )

Adds the current selected to color to a list of colors (presets), the presets will be displayed in the color picker and the user will be able to select them, notice that the presets list is only for this color picker.