From 1b776a6e7a5046d337933f8504699d1c4244289e Mon Sep 17 00:00:00 2001 From: "K. S. Ernest (iFire) Lee" Date: Mon, 18 Apr 2022 11:29:29 -0700 Subject: Allow picking similar colours using OKHSL. --- doc/classes/Color.xml | 18 ++++++++++++++++++ doc/classes/ColorPicker.xml | 3 +++ 2 files changed, 21 insertions(+) (limited to 'doc') diff --git a/doc/classes/Color.xml b/doc/classes/Color.xml index 7b8a57ed22..d5a62d2d75 100644 --- a/doc/classes/Color.xml +++ b/doc/classes/Color.xml @@ -165,6 +165,24 @@ [/codeblocks] + + + + + + + + Constructs a color from an [url=https://bottosson.github.io/posts/colorpicker/]OK HSL profile[/url]. [code]h[/code] (hue), [code]s[/code] (saturation), and [code]v[/code] (value) are typically between 0 and 1. + [codeblocks] + [gdscript] + var c = Color.from_ok_hsl(0.58, 0.5, 0.79, 0.8) + [/gdscript] + [csharp] + var c = Color.FromOkHsl(0.58f, 0.5f, 0.79f, 0.8f); + [/csharp] + [/codeblocks] + + diff --git a/doc/classes/ColorPicker.xml b/doc/classes/ColorPicker.xml index 5c47d6fb54..7c9c4ed4d6 100644 --- a/doc/classes/ColorPicker.xml +++ b/doc/classes/ColorPicker.xml @@ -91,6 +91,9 @@ HSV Color Model circle color space. Use Saturation as a radius. + + HSL OK Color Model circle color space. + -- cgit v1.2.3