diff options
author | Yuri Sizov <11782833+YuriSizov@users.noreply.github.com> | 2023-05-30 15:59:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-30 15:59:39 +0200 |
commit | f00641af9d78a99e3379706925f3dcfa94aaa5cd (patch) | |
tree | bd6bd9660865d889cfa2c1b4f4caf45f059fe394 /doc | |
parent | c697cac667406c0be87e80a189ba2f2de30f0374 (diff) | |
parent | 779ac20bb9efc869736ace5f2854aef50c21c0af (diff) | |
download | redot-engine-f00641af9d78a99e3379706925f3dcfa94aaa5cd.tar.gz |
Merge pull request #77657 from vmedea/color-hex-doc
Clarify doc for Color.hex
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/Color.xml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/classes/Color.xml b/doc/classes/Color.xml index f5411750b5..26b3e68e24 100644 --- a/doc/classes/Color.xml +++ b/doc/classes/Color.xml @@ -203,8 +203,8 @@ <return type="Color" /> <param index="0" name="hex" type="int" /> <description> - Returns the [Color] associated with the provided [param hex] integer in 32-bit RGBA format (8 bits per channel, alpha channel first). - In GDScript and C#, the [int] is best visualized with hexadecimal notation ([code]"0x"[/code] prefix). + Returns the [Color] associated with the provided [param hex] integer in 32-bit RGBA format (8 bits per channel). + In GDScript and C#, the [int] is best visualized with hexadecimal notation ([code]"0x"[/code] prefix, making it [code]"0xRRGGBBAA"[/code]). [codeblocks] [gdscript] var red = Color.hex(0xff0000ff) @@ -223,8 +223,8 @@ <return type="Color" /> <param index="0" name="hex" type="int" /> <description> - Returns the [Color] associated with the provided [param hex] integer in 64-bit RGBA format (16 bits per channel, alpha channel first). - In GDScript and C#, the [int] is best visualized with hexadecimal notation ([code]"0x"[/code] prefix). + Returns the [Color] associated with the provided [param hex] integer in 64-bit RGBA format (16 bits per channel). + In GDScript and C#, the [int] is best visualized with hexadecimal notation ([code]"0x"[/code] prefix, making it [code]"0xRRRRGGGGBBBBAAAA"[/code]). </description> </method> <method name="html" qualifiers="static"> |