-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Open
Labels
A-ColorColor spaces and color mathColor spaces and color mathC-FeatureA new feature, making something new possibleA new feature, making something new possibleD-ModestA "normal" level of difficulty; suitable for simple features or challenging fixesA "normal" level of difficulty; suitable for simple features or challenging fixesS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!This issue is ready for an implementation PR. Go for it!
Description
What problem does this solve or what need does it fill?
Okhsl
is better than oklch
at randomly generating hues while keeping other conditions equal, as it is cylindrical and therefore allows more saturation without overflowing, which is an issue with oklch
.
What solution would you like?
Add okhsl
and okhsv
to the bevy_colors
.
What alternative(s) have you considered?
- Deal with less saturated colors
- Use math on my side to calculate the highest chroma for a given hue
Additional context
C++ code can be found here: https://bottosson.github.io/posts/colorpicker/
I could try implementing this for myself, but I'm new to the codebase and don't really know how to compute some values of the traits.
Metadata
Metadata
Assignees
Labels
A-ColorColor spaces and color mathColor spaces and color mathC-FeatureA new feature, making something new possibleA new feature, making something new possibleD-ModestA "normal" level of difficulty; suitable for simple features or challenging fixesA "normal" level of difficulty; suitable for simple features or challenging fixesS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!This issue is ready for an implementation PR. Go for it!