Exemple #1
0
 /// <summary>
 /// Gets the saturation component value (HSV-color space) of this <see cref="Color"/> in the range [0..1].
 /// </summary>
 /// <param name="color"></param>
 /// <returns></returns>
 public static double GetSaturation(this Color color) => color.GetHSV().saturation;
Exemple #2
0
 /// <summary>
 /// Gets the value component value (HSV-color space) of this <see cref="Color"/> in the range [0..1].
 /// </summary>
 /// <param name="color"></param>
 /// <returns></returns>
 public static double GetValue(this Color color) => color.GetHSV().value;
Exemple #3
0
 /// <summary>
 /// Gets the hue component value (HSV-color space) of this <see cref="Color"/> as degree in the range [0..360].
 /// </summary>
 /// <param name="color"></param>
 /// <returns></returns>
 public static double GetHue(this Color color) => color.GetHSV().hue;