W3cubDocs

/Godot 3.0

ColorPicker

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

Category: Core

Brief Description

Color picker control.

Member Functions

void add_preset ( Color color )

Signals

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).

Description

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.

© 2014–2018 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
http://docs.godotengine.org/en/3.0/classes/class_colorpicker.html