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

[Merged by Bors] - Fixed case of R == G, following original conversion formula #4383

Closed

Conversation

fgiordana
Copy link
Contributor

https://en.wikipedia.org/wiki/HSL_and_HSV#From_RGB

Objective

Fixes #4382

Solution

  • Describe the solution used to achieve the objective above.
    Fixed conversion formula to account for red and green component being max and equal

Changelog

Fixed RGB -> HSL colorspace conversion

Migration Guide

@github-actions github-actions bot added the S-Needs-Triage This issue needs to be labelled label Mar 31, 2022
@alice-i-cecile alice-i-cecile added C-Bug An unexpected or incorrect behavior A-Rendering Drawing game state to the screen and removed S-Needs-Triage This issue needs to be labelled labels Mar 31, 2022
@mockersf mockersf 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 Apr 3, 2022
@cart
Copy link
Member

cart commented Apr 4, 2022

bors r+

bors bot pushed a commit that referenced this pull request Apr 4, 2022
https://en.wikipedia.org/wiki/HSL_and_HSV#From_RGB

# Objective
Fixes #4382

## Solution

- Describe the solution used to achieve the objective above.
Fixed conversion formula to account for red and green component being max and equal
---

## Changelog
Fixed RGB -> HSL colorspace conversion

## Migration Guide


Co-authored-by: Francesco Giordana <[email protected]>
@bors bors bot changed the title Fixed case of R == G, following original conversion formula [Merged by Bors] - Fixed case of R == G, following original conversion formula Apr 4, 2022
@bors bors bot closed this Apr 4, 2022
@fgiordana fgiordana deleted the bugfix/rgba-hsla-conversion branch April 4, 2022 23:01
aevyrie pushed a commit to aevyrie/bevy that referenced this pull request Jun 7, 2022
…ne#4383)

https://en.wikipedia.org/wiki/HSL_and_HSV#From_RGB

# Objective
Fixes bevyengine#4382

## Solution

- Describe the solution used to achieve the objective above.
Fixed conversion formula to account for red and green component being max and equal
---

## Changelog
Fixed RGB -> HSL colorspace conversion

## Migration Guide


Co-authored-by: Francesco Giordana <[email protected]>
ItsDoot pushed a commit to ItsDoot/bevy that referenced this pull request Feb 1, 2023
…ne#4383)

https://en.wikipedia.org/wiki/HSL_and_HSV#From_RGB

# Objective
Fixes bevyengine#4382

## Solution

- Describe the solution used to achieve the objective above.
Fixed conversion formula to account for red and green component being max and equal
---

## Changelog
Fixed RGB -> HSL colorspace conversion

## Migration Guide


Co-authored-by: Francesco Giordana <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rendering Drawing game state to the screen C-Bug An unexpected or incorrect behavior 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.

Error in colorspace conversion from RGBA to HSLA
5 participants