var canAddSwatches: BoolIf true, it’s possible to add presets under Swatches. If false, the button to add presets is disabled.
var color: ColorThe currently selected color.
var colorChanged: Signal1Emitted when the color is changed.
var colorMode: ColorPicker.ColorModeTypeThe currently selected color mode. See ColorModeType.
var colorModesVisible: BoolIf true, the color mode buttons are visible.
var deferredMode: BoolIf true, the color will apply only after the user releases the mouse button, otherwise it will apply immediately even in mouse motion event (which can cause performance issues).
var editAlpha: BoolIf true, shows an alpha channel slider (opacity).
var hexVisible: BoolIf true, the hex color code input field is visible.
var pickerShape: ColorPicker.PickerShapeTypeThe shape of the color space view. See PickerShapeType.
var presetAdded: Signal2Emitted when a preset is added.
var presetRemoved: Signal3Emitted when a preset is removed.
var presetsVisible: BoolIf true, the Swatches and Recent Colors presets are visible.
var samplerVisible: BoolIf true, the color sampler and color preview are visible.
var slidersVisible: BoolIf true, the color sliders are visible.
func addPreset(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.
func addRecentPreset(color: Color)Adds the given color to a list of color recent presets so that it can be picked later. Recent presets are the colors that were picked recently, a new preset is automatically created and added to recent presets when you pick a new color.
func erasePreset(color: Color)Removes the given color from the list of color presets of this color picker.
func eraseRecentPreset(color: Color)Removes the given color from the list of color recent presets of this color picker.
func getPresets() -> PackedColorArrayReturns the list of colors in the presets of the color picker.
func getRecentPresets() -> PackedColorArrayReturns the list of colors in the recent presets of the color picker.