squash premult

This commit is contained in:
micycle 2023-05-23 22:12:05 -04:00 committed by yosh
parent 343f91a324
commit 2343743a43
1 changed files with 1 additions and 0 deletions

View File

@ -53,6 +53,7 @@ namespace Celeste.Mod.AvaliSkin {
return $"#{color.R:x2}{color.G:x2}{color.B:x2}{color.A:x2}";
}
// Converts the 6 or 8 character hex to a non-premultiplied color
public static Color HexToColor(this string hex) {
hex = hex.TrimStart(' ', '#');
if (hex.Length < 6) {