Skip to content

Add const fn Color::hue, Color::saturation and Color::lightness etc #7746

@alice-i-cecile

Description

@alice-i-cecile

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-RenderingDrawing game state to the screenC-UsabilityA targeted quality-of-life change that makes Bevy easier to useD-TrivialNice and easy! A great choice to get started with Bevy

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions