/// <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)); }
/// <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)); }