From 1c343cd54d9bdb684de2e793f2ab99bfe85ae0d2 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Thu, 24 Mar 2022 01:24:00 +0100 Subject: Expose Color's `to_linear()` and `to_srgb()` to scripting --- core/variant/variant_call.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/variant') 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()); -- cgit v1.2.3