squash premult
This commit is contained in:
parent
343f91a324
commit
2343743a43
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue