summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-09-24 15:13:52 +0200
committerGitHub <noreply@github.com>2020-09-24 15:13:52 +0200
commit079b6753c33665dc386acd61845507c313e9d31d (patch)
tree2f06cba27a3938292625c01b957a073ec68be4cc
parent9c9f3365b23450c1ba0d3d150cf00c31b22a829b (diff)
parentde490855671cbef3be63e26180900235f8cbc0e1 (diff)
Merge pull request #42287 from Calinou/doc-color-constants-cheatsheet
Reference the Color constants cheatsheet in the class reference
-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>