Skip to content

Commit

Permalink
Merge pull request godotengine#37589 from Nannaquin/updatecolordoc
Browse files Browse the repository at this point in the history
Add reference of Color8 function to Color class documentation
  • Loading branch information
akien-mga authored Apr 7, 2020
2 parents 597ec5d + 06aeff3 commit 2267877
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/classes/Color.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 2267877

Please sign in to comment.