diff --git a/doc/classes/Color.xml b/doc/classes/Color.xml index f5411750b54..26b3e68e240 100644 --- a/doc/classes/Color.xml +++ b/doc/classes/Color.xml @@ -203,8 +203,8 @@ - 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 @@ - 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]). diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Color.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Color.cs index 555811bab2b..5dddb38055f 100644 --- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Color.cs +++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Color.cs @@ -556,7 +556,7 @@ namespace Godot /// Constructs a from an unsigned 32-bit integer in RGBA format /// (each byte represents a color channel). /// - /// The representing the color. + /// The representing the color as 0xRRGGBBAA. public Color(uint rgba) { A = (rgba & 0xFF) / 255.0f; @@ -572,7 +572,7 @@ namespace Godot /// Constructs a from an unsigned 64-bit integer in RGBA format /// (each word represents a color channel). /// - /// The representing the color. + /// The representing the color as 0xRRRRGGGGBBBBAAAA. public Color(ulong rgba) { A = (rgba & 0xFFFF) / 65535.0f;