Commit Graph
8 Commits
Author SHA1 Message Date
Tobias Decking 24e7cfb0d5 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 a84a3c0ebe 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 4cc4f08a53 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 e13fb31287 small refactoring in color crate (#6695)
Make the code more readable
2024-01-25 14:36:52 +02:00
Nate Butler 4cdcac1b16 Update docs 2024-01-17 11:39:09 -05:00
Nate Butler dde0056845 Use srgb, get mix and blend working 2024-01-16 01:08:17 -05:00
Nate Butler bdb06f183b Add a rudimentary state color builder 2024-01-16 00:07:06 -05:00
Nate Butler 8c9f3a7322 init color crate 2024-01-15 17:01:07 -05:00