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

Commit

Permalink
[Misc] Fix code comments for color, and add alpha description
Browse files Browse the repository at this point in the history
  • Loading branch information
mrvux committed Apr 19, 2017
1 parent 2a2d96f commit 1280a69
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Source/SharpDX.Mathematics/Color.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ public Color(byte red, byte green, byte blue)
/// <param name="red">The red component of the color.</param>
/// <param name="green">The green component of the color.</param>
/// <param name="blue">The blue component of the color.</param>
/// <param name="alpha">The alpha component of the color</param>
public Color(int red, int green, int blue, int alpha)
{
R = ToByte(red);
Expand Down Expand Up @@ -368,7 +369,7 @@ public byte[] ToArray()
/// <summary>
/// Gets the brightness.
/// </summary>
/// <returns>The Hue-Saturation-Brightness (HSB) saturation for this <see cref="Color"/></returns>
/// <returns>The Hue-Saturation-Brightness (HSB) brightness for this <see cref="Color"/></returns>
public float GetBrightness()
{
float r = (float)R / 255.0f;
Expand All @@ -391,7 +392,7 @@ public float GetBrightness()
/// <summary>
/// Gets the hue.
/// </summary>
/// <returns>The Hue-Saturation-Brightness (HSB) saturation for this <see cref="Color"/></returns>
/// <returns>The Hue-Saturation-Brightness (HSB) hue for this <see cref="Color"/></returns>
public float GetHue()
{
if (R == G && G == B)
Expand Down

0 comments on commit 1280a69

Please sign in to comment.