Merge pull request #59456 from Calinou/color-expose-to-linear-srgb

This commit is contained in:
Rémi Verschelde 2022-03-28 13:36:19 +02:00 committed by GitHub
commit 41d075de58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 33 additions and 0 deletions

View file

@ -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());