Skip to content

Oklcha with_ methods are inconsistent with other color spaces #12224

@rparrett

Description

@rparrett

Bevy version

main

What you did

Try to swap some code using Hsla to Oklcha.

What went wrong

Expected with_hue calls to continue working, because Oklcha also has hue.

But for this color space, they are with_h, with_l, and with_c.

Additional information

I think that Oklcha is the odd one out and that all other spaces use full names, but we should check them all and make them consistent.

Also, maybe this is intentional. I don't know much about Oklch. Are the lch strictly "lightless" "chroma" and "hue"?.

Oklaba also has "short with_ methods" but if you expanded them, I assume they would end up like lightness, a, b.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-RenderingDrawing game state to the screenC-Code-QualityA section of code that is hard to understand or changeD-TrivialNice and easy! A great choice to get started with Bevy

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions