summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2020-11-03 00:21:06 +0100
committerAaron Franke <arnfranke@yahoo.com>2020-11-03 04:46:08 -0500
commit7adb6b91b33e297b4833ef5f82adcf64a15777f4 (patch)
tree8a47d75e5a7ea66f1b5deec162408887090cdd11 /scene
parent873d4617852cddfd368e3046f718f410eade6a3e (diff)
Remove `Color.contrasted()` as its behavior is barely useful
Returning the most contrasting color isn't a trivial task, as there are often many possible choices. It's usually best left for the user to implement using a script.
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/gradient_edit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/gradient_edit.cpp b/scene/gui/gradient_edit.cpp
index ecd4ad17ea..53d7ead548 100644
--- a/scene/gui/gradient_edit.cpp
+++ b/scene/gui/gradient_edit.cpp
@@ -357,7 +357,7 @@ void GradientEdit::_notification(int p_what) {
//Draw point markers
for (int i = 0; i < points.size(); i++) {
- Color col = points[i].color.contrasted();
+ Color col = points[i].color.inverted();
col.a = 0.9;
draw_line(Vector2(points[i].offset * total_w, 0), Vector2(points[i].offset * total_w, h / 2), col);