From 0011d93c810148e2c5190a7355fb6f788d073db7 Mon Sep 17 00:00:00 2001 From: Vitika9 Date: Sun, 29 May 2022 20:47:37 +0530 Subject: ColorPicker Refactor --- doc/classes/ColorPicker.xml | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) (limited to 'doc/classes') diff --git a/doc/classes/ColorPicker.xml b/doc/classes/ColorPicker.xml index 7c9c4ed4d6..cc9c5877c5 100644 --- a/doc/classes/ColorPicker.xml +++ b/doc/classes/ColorPicker.xml @@ -37,16 +37,15 @@ The currently selected color. + + The currently selected color mode. See [enum ColorModeType]. + If [code]true[/code], 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). If [code]true[/code], shows an alpha channel slider (opacity). - - If [code]true[/code], allows editing the color with Hue/Saturation/Value sliders. - [b]Note:[/b] Cannot be enabled if raw mode is on. - The shape of the color space view. See [enum PickerShapeType]. @@ -56,10 +55,6 @@ If [code]true[/code], saved color presets are visible. - - If [code]true[/code], 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). - [b]Note:[/b] Cannot be enabled if HSV mode is on. - @@ -82,6 +77,20 @@ + + Allows editing the color with Red/Green/Blue sliders. + + + Allows editing the color with Hue/Saturation/Value sliders. + + + 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). + + + Allows editing the color with Hue/Saturation/Lightness sliders. + OKHSL is a new color space similar to HSL but that better match perception by leveraging the Oklab color space which is designed to be simple to use, while doing a good job at predicting perceived lightness, chroma and hue. + [url=https://bottosson.github.io/posts/colorpicker/]Okhsv and Okhsl color spaces[/url] + HSV Color Model rectangle color space. -- cgit v1.2.3