prime31 / Nez

Nez is a free 2D focused framework that works with MonoGame and FNA
MIT License
1.76k stars 355 forks source link

Support two new hex color string formats #760

Closed dacher996 closed 1 year ago

dacher996 commented 1 year ago

Previously, when using the ColorExt.HexToColor(string hex) static function, we had to make sure that the provided string does not start with a # sign. Additionally, if we wanted to parse a hex color string which contains details about the alpha channel, this would get overlooked. With this PR, these issues are fixed.


Had to close my previous PR due to some mixup with my branch. Hope this one works. 😅