diff options
author | K. S. Ernest (iFire) Lee <fire@users.noreply.github.com> | 2022-04-18 11:29:29 -0700 |
---|---|---|
committer | K. S. Ernest (iFire) Lee <ernest.lee@chibifire.com> | 2022-06-07 05:53:27 -0700 |
commit | 1b776a6e7a5046d337933f8504699d1c4244289e (patch) | |
tree | 24697438d1b8671201b82cadca722b1a7d8c07b1 /core/variant/variant_call.cpp | |
parent | 36bd26dc75465d0b64441113bc4055b2cd06b516 (diff) | |
download | redot-engine-1b776a6e7a5046d337933f8504699d1c4244289e.tar.gz |
Allow picking similar colours using OKHSL.
Diffstat (limited to 'core/variant/variant_call.cpp')
-rw-r--r-- | core/variant/variant_call.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/variant/variant_call.cpp b/core/variant/variant_call.cpp index 3fe5ead347..e3c04d5805 100644 --- a/core/variant/variant_call.cpp +++ b/core/variant/variant_call.cpp @@ -1675,6 +1675,8 @@ static void _register_variant_builtin_methods() { bind_static_method(Color, get_named_color, sarray("idx"), varray()); bind_static_method(Color, from_string, sarray("str", "default"), varray()); bind_static_method(Color, from_hsv, sarray("h", "s", "v", "alpha"), varray(1.0)); + bind_static_method(Color, from_ok_hsl, sarray("h", "s", "l", "alpha"), varray(1.0)); + bind_static_method(Color, from_rgbe9995, sarray("rgbe"), varray()); /* RID */ |