Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bevy_color: Add Oklch Color Space #12168

Merged
merged 2 commits into from
Feb 28, 2024

Conversation

bushrat011899
Copy link
Contributor

Objective

  • Complete compatibility with CSS Module 4

Solution

  • Added Oklcha which implements the Oklch color model.
  • Updated Color and LegacyColor accordingly.

Migration Guide

  • Convert Oklcha to Oklaba using the provided From implementations and then handle accordingly.

Notes

This is the last color space missing from the CSS Module 4 standard, and is also the one I believe we should recommend users actually work with for hand-crafting colours. It has all the uniformity benefits of Oklab combined with the intuition chroma and hue provide (when compared to a-axis and b-axis parameters).

@alice-i-cecile
Copy link
Member

Can you add matching constructors per #12171 please?

@alice-i-cecile alice-i-cecile added C-Feature A new feature, making something new possible A-Rendering Drawing game state to the screen labels Feb 28, 2024
@alice-i-cecile alice-i-cecile added this to the 0.14 milestone Feb 28, 2024
@alice-i-cecile alice-i-cecile added the S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it label Feb 28, 2024
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Feb 28, 2024
Merged via the queue into bevyengine:main with commit 6774e04 Feb 28, 2024
26 checks passed
@BD103 BD103 added the A-Color Color spaces and color math label May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Color Color spaces and color math A-Rendering Drawing game state to the screen C-Feature A new feature, making something new possible S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants