summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-04-07 09:16:51 +0200
committerGitHub <noreply@github.com>2020-04-07 09:16:51 +0200
commit2267877ee60928e9edddfb6633e69bf9a8c40b0c (patch)
tree42fcd62e3b937990e6f91dc40e6e2d4a58320eb9 /doc/classes
parent597ec5dbf8e03889a22b80e50eb72d41e1387d64 (diff)
parent06aeff30446392cd52005b37e8aec219c47e5f9b (diff)
Merge pull request #37589 from Nannaquin/updatecolordoc
Add reference of Color8 function to Color class documentation
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/Color.xml3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/classes/Color.xml b/doc/classes/Color.xml
index 8587acade3..d495be2ffd 100644
--- a/doc/classes/Color.xml
+++ b/doc/classes/Color.xml
@@ -5,7 +5,8 @@
</brief_description>
<description>
A color is represented by red, green, and blue [code](r, g, b)[/code] components. Additionally, [code]a[/code] represents the alpha component, often used for transparency. Values are in floating-point and usually range from 0 to 1. Some properties (such as [member CanvasItem.modulate]) may accept values greater than 1.
- 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].
+ 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].
</description>
<tutorials>
</tutorials>