summaryrefslogtreecommitdiffstats
path: root/doc/classes/Color.xml
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 /doc/classes/Color.xml
parent873d4617852cddfd368e3046f718f410eade6a3e (diff)
downloadredot-engine-7adb6b91b33e297b4833ef5f82adcf64a15777f4.tar.gz
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 'doc/classes/Color.xml')
-rw-r--r--doc/classes/Color.xml17
1 files changed, 0 insertions, 17 deletions
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]
</description>
</method>
- <method name="contrasted">
- <return type="Color">
- </return>
- <description>
- 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]
- </description>
- </method>
<method name="darkened">
<return type="Color">
</return>