Skip to content

Commit

Permalink
Update and rename ColorExtension.shared.cs to ColorConversionExtensio…
Browse files Browse the repository at this point in the history
…ns.shared.cs
  • Loading branch information
brminnick authored Sep 26, 2021
1 parent d8dae04 commit 6662dd3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace CommunityToolkit.Maui.Extensions
{
public static class ColorExtension
public static class ColorConversionExtensions
{
/// <returns>RGB(255, 255, 255)</returns>
public static string ToRgbString(this Color c) => $"RGB({c.GetByteRed()},{c.GetByteGreen()},{c.GetByteBlue()})";
Expand Down Expand Up @@ -135,4 +135,4 @@ static byte ToByte(double input)
return (byte)Math.Round(input);
}
}
}
}

0 comments on commit 6662dd3

Please sign in to comment.