瀏覽代碼

Add reference of Color8 function to Color class documentation

(cherry picked from commit 06aeff30446392cd52005b37e8aec219c47e5f9b)
Nannaquin 5 年之前
父節點
當前提交
27989ae8f8
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      doc/classes/Color.xml

+ 2 - 1
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>