/// <summary> /// Returns a color that is 50% darker. /// </summary> /// <returns>A color that is 50% darker.</returns> public static Color Dark(this Color baseColor) { var color = new XnaHLSColor(baseColor); return(color.Darker(0.5f)); }
/// <summary> /// Returns a color that is 50% lighter. /// </summary> /// <returns>A color that is 50% lighter.</returns> public static Color Light(this Color baseColor) { var color = new XnaHLSColor(baseColor); return(color.Lighter(0.5f)); }