Exemple #1
0
 /// <summary>
 /// Lightens the color.
 /// </summary>
 /// <param name="color">The color.</param>
 /// <returns>Returns a <see cref="Color" />.</returns>
 public static Color LightenColor(this Color color)
 {
     return(color.AdjustColorBrightness(1.1f));
 }
Exemple #2
0
 /// <summary>
 /// Darkens a color.
 /// </summary>
 /// <param name="color">The color.</param>
 /// <param name="factor">The factor.</param>
 /// <returns>Returns a <see cref="Color" />.</returns>
 public static Color DarkenColor(this Color color, float factor)
 {
     return(color.AdjustColorBrightness(factor));
 }