summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2020-09-23 23:48:37 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2020-09-23 23:48:37 +0200
commitde490855671cbef3be63e26180900235f8cbc0e1 (patch)
tree8ee27ec06df634695bc79a2ffb2106f58fe505a0 /doc
parent72aaf81518253e25f28b3a23b5d3509e1264a5ad (diff)
Reference the Color constants cheatsheet in the class reference
Diffstat (limited to 'doc')
-rw-r--r--doc/classes/Color.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/classes/Color.xml b/doc/classes/Color.xml
index fcaba99eb7..850e95d5ef 100644
--- a/doc/classes/Color.xml
+++ b/doc/classes/Color.xml
@@ -8,6 +8,7 @@
You can also create a color from standardized color names by using [method @GDScript.ColorN] or directly using the color constants defined here. The standardized color set is based on the [url=https://en.wikipedia.org/wiki/X11_color_names]X11 color names[/url].
If you want to supply values in a range of 0 to 255, you should use [method @GDScript.Color8].
[b]Note:[/b] In a boolean context, a Color will evaluate to [code]false[/code] if it's equal to [code]Color(0, 0, 0, 1)[/code] (opaque black). Otherwise, a Color will always evaluate to [code]true[/code].
+ [url=https://raw.githubusercontent.com/godotengine/godot-docs/master/img/color_constants.png]Color constants cheatsheet[/url]
</description>
<tutorials>
</tutorials>