/// <summary> /// Initializes a new instance of the <see cref="TAlex.WPF.Media.HsvColor"/> structure. /// </summary> /// <param name="alpha">A System.Double representing the alpha channel of the new color.</param> /// <param name="hue">A System.Double representing the hue of the new color.</param> /// <param name="saturation">A System.Double representing the saturation of the new color.</param> /// <param name="value">A System.Double representing the value (brightness) of the new color.</param> public HsvColor(double alpha, double hue, double saturation, double value) { _a = ColorUtilities.ClipValue(alpha, 0, 1); _h = ColorUtilities.ClipValue(hue, 0, MaxHueValue); _s = ColorUtilities.ClipValue(saturation, 0, 1); _v = ColorUtilities.ClipValue(value, 0, 1); }