-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Add const fn Color::hue, Color::saturation and Color::lightness etc #7746
Copy link
Copy link
Closed
Labels
A-RenderingDrawing game state to the screenDrawing game state to the screenC-UsabilityA targeted quality-of-life change that makes Bevy easier to useA targeted quality-of-life change that makes Bevy easier to useD-TrivialNice and easy! A great choice to get started with BevyNice and easy! A great choice to get started with Bevy
Description
What problem does this solve or what need does it fill?
When working with color palettes, you often want to match the hue/saturation/lightness of existing colors.
Matching these directly is a bit frustrating: there's no easy way to check "what hue is this".
What solution would you like?
Add methods that parallel Color::r for all other provided color spaces.
What alternative(s) have you considered?
You can work around this by storing a const DARK_MODE_BACKGROUND_HUE etc and using that repeatedly.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-RenderingDrawing game state to the screenDrawing game state to the screenC-UsabilityA targeted quality-of-life change that makes Bevy easier to useA targeted quality-of-life change that makes Bevy easier to useD-TrivialNice and easy! A great choice to get started with BevyNice and easy! A great choice to get started with Bevy