diff options
| author | Rémi Verschelde | 2017-11-22 01:27:01 +0100 |
|---|---|---|
| committer | GitHub | 2017-11-22 01:27:01 +0100 |
| commit | 9638c9cb5d5b43a19df390fa0bf6e996e84903bc (patch) | |
| tree | 9cdd90acb6039df75df93c0c6953719bec266360 /core/variant_call.cpp | |
| parent | 3b7e9df2553f17f7d6eef5c7cb63b14d58d99d9f (diff) | |
| parent | 8e4336a7294f0cc31aa5ccfb2854c702aa86dcca (diff) | |
| download | godot-9638c9cb5d5b43a19df390fa0bf6e996e84903bc.tar.gz godot-9638c9cb5d5b43a19df390fa0bf6e996e84903bc.tar.zst godot-9638c9cb5d5b43a19df390fa0bf6e996e84903bc.zip | |
Diffstat (limited to 'core/variant_call.cpp')
| -rw-r--r-- | core/variant_call.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/variant_call.cpp b/core/variant_call.cpp index 78047b8da..5e216c75b 100644 --- a/core/variant_call.cpp +++ b/core/variant_call.cpp @@ -437,6 +437,8 @@ struct _VariantCall { VCALL_LOCALMEM0R(Color, contrasted); VCALL_LOCALMEM2R(Color, linear_interpolate); VCALL_LOCALMEM1R(Color, blend); + VCALL_LOCALMEM1R(Color, lightened); + VCALL_LOCALMEM1R(Color, darkened); VCALL_LOCALMEM1R(Color, to_html); VCALL_LOCALMEM0R(RID, get_id); @@ -1578,6 +1580,8 @@ void register_variant_methods() { ADDFUNC0R(COLOR, COLOR, Color, contrasted, varray()); ADDFUNC2R(COLOR, COLOR, Color, linear_interpolate, COLOR, "b", REAL, "t", varray()); ADDFUNC1R(COLOR, COLOR, Color, blend, COLOR, "over", varray()); + ADDFUNC1R(COLOR, COLOR, Color, lightened, REAL, "amount", varray()); + ADDFUNC1R(COLOR, COLOR, Color, darkened, REAL, "amount", varray()); ADDFUNC1R(COLOR, STRING, Color, to_html, BOOL, "with_alpha", varray(true)); ADDFUNC0R(_RID, INT, RID, get_id, varray()); |
