diff --git a/RGB.NET.Core/Color/HSVColor.cs b/RGB.NET.Core/Color/HSVColor.cs index e632e6c..e1562b1 100644 --- a/RGB.NET.Core/Color/HSVColor.cs +++ b/RGB.NET.Core/Color/HSVColor.cs @@ -6,12 +6,35 @@ namespace RGB.NET.Core { #region Getter + /// + /// Gets the hue component value (HSV-color space) of this as degree in the range [0..360]. + /// + /// + /// public static double GetHue(this Color color) => color.GetHSV().hue; + /// + /// Gets the saturation component value (HSV-color space) of this in the range [0..1]. + /// + /// + /// public static double GetSaturation(this Color color) => color.GetHSV().saturation; + /// + /// Gets the value component value (HSV-color space) of this in the range [0..1]. + /// + /// + /// public static double GetValue(this Color color) => color.GetHSV().value; + /// + /// Gets the hue, saturation and value component values (HSV-color space) of this . + /// Hue as degree in the range [0..1]. + /// Saturation in the range [0..1]. + /// Value in the range [0..1]. + /// + /// + /// public static (double hue, double saturation, double value) GetHSV(this Color color) => CaclulateHSVFromRGB(color.RPercent, color.GPercent, color.BPercent); diff --git a/RGB.NET.Core/Color/RGBColor.cs b/RGB.NET.Core/Color/RGBColor.cs index fa26417..2aa3b74 100644 --- a/RGB.NET.Core/Color/RGBColor.cs +++ b/RGB.NET.Core/Color/RGBColor.cs @@ -6,8 +6,13 @@ namespace RGB.NET.Core { #region Getter - public static (double r, double g, double b) GetRGBPercent(this Color color) - => (color.RPercent, color.GPercent, color.BPercent); + /// + /// Gets the A, R, G and B component value of this as percentage in the range [0..1]. + /// + /// + /// + public static (double a, double r, double g, double b) GetRGBPercent(this Color color) + => (color.APercent, color.RPercent, color.GPercent, color.BPercent); #endregion