summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-02-27 21:23:07 +0100
committerRémi Verschelde <rverschelde@gmail.com>2024-02-27 21:23:07 +0100
commited2ff19cd78b5f4bdb38ddbd6b8e7e47e8c7c151 (patch)
treee4337b273eac7261bc0b74863ca72f2c9f427449 /modules
parenta64cb8eff3becb71718b711ce4cd8c4512a3e5f5 (diff)
parent4100a23c5e2e05422c994af1a2e3159d6c271db7 (diff)
downloadredot-engine-ed2ff19cd78b5f4bdb38ddbd6b8e7e47e8c7c151.tar.gz
Merge pull request #88909 from emre0altan/clarify-c#-color-opacity-comment
Clarify C# Color opacity comment
Diffstat (limited to 'modules')
-rw-r--r--modules/mono/glue/GodotSharp/GodotSharp/Core/Color.cs16
1 files 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 f50540aa8b..72a3fe3ed0 100644
--- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Color.cs
+++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Color.cs
@@ -38,7 +38,9 @@ namespace Godot
public float B;
/// <summary>
- /// 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.
/// </summary>
public float A;
@@ -534,7 +536,11 @@ namespace Godot
/// <param name="r">The color's red component, typically on the range of 0 to 1.</param>
/// <param name="g">The color's green component, typically on the range of 0 to 1.</param>
/// <param name="b">The color's blue component, typically on the range of 0 to 1.</param>
- /// <param name="a">The color's alpha (transparency) value, typically on the range of 0 to 1. Default: 1.</param>
+ /// <param name="a">
+ /// 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.
+ /// </param>
public Color(float r, float g, float b, float a = 1.0f)
{
R = r;
@@ -547,7 +553,11 @@ namespace Godot
/// Constructs a <see cref="Color"/> from an existing color and an alpha value.
/// </summary>
/// <param name="c">The color to construct from. Only its RGB values are used.</param>
- /// <param name="a">The color's alpha (transparency) value, typically on the range of 0 to 1. Default: 1.</param>
+ /// <param name="a">
+ /// 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.
+ /// </param>
public Color(Color c, float a = 1.0f)
{
R = c.R;