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 Rec 2100 HLG algorithm #279

Merged
merged 1 commit into from
Feb 3, 2023

Conversation

facelessuser
Copy link
Collaborator

As you can see, the round trip is busted:

> new Color('srgb', [0.6, 0.6, 0.6]).to('rec2100hlg').to('srgb').toString()
'rgb(58.775% 58.775% 58.775%)'

With the proposed fix:

> new Color('srgb', [0.6, 0.6, 0.6]).to('rec2100hlg').to('srgb').toString()
'rgb(60% 60% 60%)'

@LeaVerou LeaVerou merged commit 52bec44 into color-js:main Feb 3, 2023
@LeaVerou
Copy link
Member

LeaVerou commented Feb 3, 2023

Thank you!!

@facelessuser facelessuser deleted the bugfix/rec2100-hlg branch February 6, 2023 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants