Skip to content
This repository was archived by the owner on Mar 30, 2019. It is now read-only.

Commit 1280a69

Browse files
committed
[Misc] Fix code comments for color, and add alpha description
1 parent 2a2d96f commit 1280a69

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Source/SharpDX.Mathematics/Color.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ public Color(byte red, byte green, byte blue)
107107
/// <param name="red">The red component of the color.</param>
108108
/// <param name="green">The green component of the color.</param>
109109
/// <param name="blue">The blue component of the color.</param>
110+
/// <param name="alpha">The alpha component of the color</param>
110111
public Color(int red, int green, int blue, int alpha)
111112
{
112113
R = ToByte(red);
@@ -368,7 +369,7 @@ public byte[] ToArray()
368369
/// <summary>
369370
/// Gets the brightness.
370371
/// </summary>
371-
/// <returns>The Hue-Saturation-Brightness (HSB) saturation for this <see cref="Color"/></returns>
372+
/// <returns>The Hue-Saturation-Brightness (HSB) brightness for this <see cref="Color"/></returns>
372373
public float GetBrightness()
373374
{
374375
float r = (float)R / 255.0f;
@@ -391,7 +392,7 @@ public float GetBrightness()
391392
/// <summary>
392393
/// Gets the hue.
393394
/// </summary>
394-
/// <returns>The Hue-Saturation-Brightness (HSB) saturation for this <see cref="Color"/></returns>
395+
/// <returns>The Hue-Saturation-Brightness (HSB) hue for this <see cref="Color"/></returns>
395396
public float GetHue()
396397
{
397398
if (R == G && G == B)

0 commit comments

Comments
 (0)