From 7adb6b91b33e297b4833ef5f82adcf64a15777f4 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Tue, 3 Nov 2020 00:21:06 +0100 Subject: 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. --- doc/classes/Color.xml | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'doc') diff --git a/doc/classes/Color.xml b/doc/classes/Color.xml index ef438e422a..70529e0ee6 100644 --- a/doc/classes/Color.xml +++ b/doc/classes/Color.xml @@ -159,23 +159,6 @@ [/codeblocks] - - - - - Returns the most contrasting color. - [codeblocks] - [gdscript] - var color = Color(0.3, 0.4, 0.9) - var contrasted_color = color.contrasted() # Equivalent to RGBA(204, 229, 102, 255) - [/gdscript] - [csharp] - var color = new Color(0.3f, 0.4f, 0.9f); - Color contrastedColor = color.Contrasted(); // Equivalent to RGBA(204, 229, 102, 255) - [/csharp] - [/codeblocks] - - -- cgit v1.2.3