Commit Graph
8 Commits
Author SHA1 Message Date
Tobias Decking f58187150e Fix hex_to_hsla inside the color crate (#9412)
Previously, when `hex_to_hsla` was called with a color string using the
#rgb format, the expansion
did not add alpha values, leading to an incorrect result. This patch
fixes the issue.

In addition to that, parsing has been reworked, and the new function no
longer makes
calls to the global allocator in addition to generation much smaller
code. Parsing should
therefore be a bit more performant.
2024-03-15 16:58:46 -04:00
Brian Donovan c7fdf01166 docs: Fix "it's" typos that should be "its" (#8690)
These all meant to use the possessive "its" rather than the contraction
of "it is".
2024-03-01 20:32:27 -05:00
Nathan Sobo 2d7db2d1b8 Remove ! from todo!() in comments (#8643)
This practice makes it difficult to locate todo!s in my code when I'm
working. Let's take out the bang if we want to keep doing this.

Release Notes:

- N/A
2024-02-29 18:19:05 -07:00
Thomas Coratger a80a341a96 small refactoring in color crate (#6695)
Make the code more readable
2024-01-25 14:36:52 +02:00
Nate Butler d5026f7bfa Update docs 2024-01-17 11:39:09 -05:00
Nate Butler 3d5691ce92 Use srgb, get mix and blend working 2024-01-16 01:08:17 -05:00
Nate Butler b788bc9544 Add a rudimentary state color builder 2024-01-16 00:07:06 -05:00
Nate Butler f48496cb60 init color crate 2024-01-15 17:01:07 -05:00