prime31 / Nez

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

Support two new hex color string formats #759

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.

prime31 commented 1 year ago

Looks good to me but can you do a quick rebase? It looks like the file was perhaps changed from tabs to spaces or vice versa so the entire contents are in the commit.

dacher996 commented 1 year ago

Yes, of course. I edited the changes via the edit file option on GitHub, so that's probably why it's like that. Will fix it once I am in front of my pc. Thanks for the quick response! 🙌🏼