Skip to content

Add hue rotation traits #12200

@alice-i-cecile

Description

@alice-i-cecile
          Nit for future PR: We should add hue rotation traits to make this cleaner.

Originally posted by @bushrat011899 in #12163 (comment)

Much like the Alpha trait, we should provide easy ways to "rotate" the hue of colors: shifting them by a provided number of degrees to rotate the metaphorical color wheel.

This trait should only be implemented for the color models (types) with an explicit hue element: other color types should be converted to one of those spaces first.

Once basic hue rotation is added, we can add nice color theory options: things like "complementary colors" (rotate by 180 degrees), "triadic colors" (rotate by 120 degrees), analogous colors and so on.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-RenderingDrawing game state to the screenC-FeatureA new feature, making something new possibleD-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