Ejemplo n.º 1
0
 /// <summary>
 /// Converts a color to HSV, scales the V, and converts back to RGB
 /// </summary>
 /// <param name="rgb">      </param>
 /// <param name="intensity"></param>
 /// <returns></returns>
 public static Color Scale(this Color rgb, float intensity)
 {
     Color.RGBToHSV(rgb, out var h, out var s, out var v);
     return(Color.HSVToRGB(h, s, v * intensity));
 }