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

Fix Oklab and Oklch color space inconsistency #12583

Merged
merged 1 commit into from
Mar 19, 2024

Conversation

chompaa
Copy link
Member

@chompaa chompaa commented Mar 19, 2024

Objective

Fixes #12224.

Solution

  • Expand with_ methods for the Oklch to their full names.
  • Expand l to lightness in Oklaba comments.

Migration Guide

The following methods have been renamed for the Oklch color space:

  • with_l -> with_lightness.
  • with_c -> with_chroma.
  • with_h -> with_hue.

@pablo-lua pablo-lua added A-Rendering Drawing game state to the screen C-Code-Quality A section of code that is hard to understand or change labels Mar 19, 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 Mar 19, 2024
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Mar 19, 2024
Merged via the queue into bevyengine:main with commit f38895a Mar 19, 2024
30 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-Code-Quality A section of code that is hard to understand or change 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.

Oklcha with_ methods are inconsistent with other color spaces
4 participants