summaryrefslogtreecommitdiff
path: root/core/variant
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2022-03-24 01:24:00 +0100
committerRĂ©mi Verschelde <remi@verschelde.fr>2022-03-28 12:17:55 +0200
commit1c343cd54d9bdb684de2e793f2ab99bfe85ae0d2 (patch)
tree6bb1510705f71241ee2e7fcf1285979193edb3d3 /core/variant
parent01f34495bf261a64a790e6f71a14a445fc3f474c (diff)
Expose Color's `to_linear()` and `to_srgb()` to scripting
Diffstat (limited to 'core/variant')
-rw-r--r--core/variant/variant_call.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/variant/variant_call.cpp b/core/variant/variant_call.cpp
index a02f9c5823..c11925fa8c 100644
--- a/core/variant/variant_call.cpp
+++ b/core/variant/variant_call.cpp
@@ -1656,6 +1656,8 @@ static void _register_variant_builtin_methods() {
bind_method(Color, darkened, sarray("amount"), varray());
bind_method(Color, blend, sarray("over"), varray());
bind_method(Color, get_luminance, sarray(), varray());
+ bind_method(Color, to_linear, sarray(), varray());
+ bind_method(Color, to_srgb, sarray(), varray());
bind_method(Color, is_equal_approx, sarray("to"), varray());