fix misspellings

This commit is contained in:
Sekan, Tobias
2020-11-09 06:30:36 +01:00
parent 36f55ae80c
commit d192e6feb6
4 changed files with 13 additions and 5 deletions

View File

@@ -74,15 +74,15 @@ namespace ColorPicker.Helpers
/// <returns>A <see cref="string"/> representation of a HSB color</returns>
private static string ColorToHSB(Color color)
{
var (hue, saturation, brightnes) = ColorHelper.ConvertToHSBColor(color);
var (hue, saturation, brightness) = ColorHelper.ConvertToHSBColor(color);
hue = Math.Round(hue);
saturation = Math.Round(saturation * 100);
brightnes = Math.Round(brightnes * 100);
brightness = Math.Round(brightness * 100);
return $"hsb({hue.ToString(CultureInfo.InvariantCulture)}"
+ $", {saturation.ToString(CultureInfo.InvariantCulture)}%"
+ $", {brightnes.ToString(CultureInfo.InvariantCulture)}%)";
+ $", {brightness.ToString(CultureInfo.InvariantCulture)}%)";
}
/// <summary>