Skip to content

Clean up color logic in contributors.rs example #12203

@alice-i-cecile

Description

@alice-i-cecile

Nit for future PR: This looks gross. I think it would look nicer to declare const: SELECTED: Hsla = Hsla::new(0., 0.3, 0.2, 0.92); and then use SELECTED.with_hue(hue).into().

Originally posted by @bushrat011899 in #12163 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-Code-QualityA section of code that is hard to understand or changeC-ExamplesAn addition or correction to our examplesD-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