summaryrefslogtreecommitdiff
path: root/core/variant/variant_setget.h
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2022-06-07 20:52:32 +0200
committerGitHub <noreply@github.com>2022-06-07 20:52:32 +0200
commitd52a79ad2288f815f935f40a089b5fe0887188a6 (patch)
tree6ce9c2bd823999d92b5e51f91b787a4e170da2d4 /core/variant/variant_setget.h
parent28cf97746f7fbf3e2bf6bb96c1b48a72f2d738d2 (diff)
parent1b776a6e7a5046d337933f8504699d1c4244289e (diff)
Merge pull request #59786 from V-Sekai/ok_color
Allow picking similar colours using OKHSL.
Diffstat (limited to 'core/variant/variant_setget.h')
-rw-r--r--core/variant/variant_setget.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/variant/variant_setget.h b/core/variant/variant_setget.h
index 3b95f0531b..bc4dc4b408 100644
--- a/core/variant/variant_setget.h
+++ b/core/variant/variant_setget.h
@@ -329,4 +329,8 @@ SETGET_NUMBER_STRUCT_FUNC(Color, double, h, set_h, get_h)
SETGET_NUMBER_STRUCT_FUNC(Color, double, s, set_s, get_s)
SETGET_NUMBER_STRUCT_FUNC(Color, double, v, set_v, get_v)
+SETGET_NUMBER_STRUCT_FUNC(Color, double, ok_hsl_h, set_ok_hsl_h, get_ok_hsl_h)
+SETGET_NUMBER_STRUCT_FUNC(Color, double, ok_hsl_s, set_ok_hsl_s, get_ok_hsl_s)
+SETGET_NUMBER_STRUCT_FUNC(Color, double, ok_hsl_l, set_ok_hsl_l, get_ok_hsl_l)
+
#endif // VARIANT_SETGET_H