You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
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.
This commit is contained in:
committed by
Aaron Franke
parent
873d461785
commit
7adb6b91b3
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user