diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-07-29 15:17:40 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-07-29 15:17:40 +0200 |
commit | 6d46399bc91d1a5f2917da95dd542c641e5245c7 (patch) | |
tree | 2f50687384c2cab9b83353329254cda73785afcb /doc/classes | |
parent | 4f2d818680bc96ccdd12ed10ad783951fb6dc473 (diff) | |
parent | 7cc0df6b46421b0918b766dbff20d105c39c8fc9 (diff) | |
download | redot-engine-6d46399bc91d1a5f2917da95dd542c641e5245c7.tar.gz |
Merge pull request #94879 from KoBeWi/color_conjuring_tricks
Document alternatives to some static Color methods
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/Color.xml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/classes/Color.xml b/doc/classes/Color.xml index 3f0ccc0b5e..9fe42fff90 100644 --- a/doc/classes/Color.xml +++ b/doc/classes/Color.xml @@ -190,6 +190,7 @@ <param index="1" name="default" type="Color" /> <description> Creates a [Color] from the given string, which can be either an HTML color code or a named color (case-insensitive). Returns [param default] if the color cannot be inferred from the string. + If you want to create a color from String in a constant expression, use the equivalent constructor instead (i.e. [code]Color("color string")[/code]). </description> </method> <method name="get_luminance" qualifiers="const"> @@ -217,6 +218,7 @@ var my_color = new Color(0xbbefd2a4); [/csharp] [/codeblocks] + If you want to use hex notation in a constant expression, use the equivalent constructor instead (i.e. [code]Color(0xRRGGBBAA)[/code]). </description> </method> <method name="hex64" qualifiers="static"> |