From 4100a23c5e2e05422c994af1a2e3159d6c271db7 Mon Sep 17 00:00:00 2001 From: emre0altan Date: Tue, 27 Feb 2024 13:29:47 +0000 Subject: [PATCH] Clarify C# Color opacity comment --- .../glue/GodotSharp/GodotSharp/Core/Color.cs | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Color.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Color.cs index c29a0f2bd883..e2eadc392671 100644 --- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Color.cs +++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Color.cs @@ -38,7 +38,9 @@ public struct Color : IEquatable public float B; /// - /// The color's alpha (transparency) component, typically on the range of 0 to 1. + /// The color's alpha component, typically on the range of 0 to 1. + /// A value of 0 means that the color is fully transparent. + /// A value of 1 means that the color is fully opaque. /// public float A; @@ -534,7 +536,11 @@ public readonly string ToHtml(bool includeAlpha = true) /// The color's red component, typically on the range of 0 to 1. /// The color's green component, typically on the range of 0 to 1. /// The color's blue component, typically on the range of 0 to 1. - /// The color's alpha (transparency) value, typically on the range of 0 to 1. Default: 1. + /// + /// The color's alpha value, typically on the range of 0 to 1. + /// A value of 0 means that the color is fully transparent. + /// A value of 1 means that the color is fully opaque. + /// public Color(float r, float g, float b, float a = 1.0f) { R = r; @@ -547,7 +553,11 @@ public Color(float r, float g, float b, float a = 1.0f) /// Constructs a from an existing color and an alpha value. /// /// The color to construct from. Only its RGB values are used. - /// The color's alpha (transparency) value, typically on the range of 0 to 1. Default: 1. + /// + /// The color's alpha value, typically on the range of 0 to 1. + /// A value of 0 means that the color is fully transparent. + /// A value of 1 means that the color is fully opaque. + /// public Color(Color c, float a = 1.0f) { R = c.R;