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

Relative Luminance equation #248

Closed
indigohedgehog opened this issue Mar 9, 2022 · 1 comment
Closed

Relative Luminance equation #248

indigohedgehog opened this issue Mar 9, 2022 · 1 comment
Labels

Comments

@indigohedgehog
Copy link

For this equation the correct threshold for the piecewise equation is 0.04045 and not 0.03928
lum[i] = (chan <= 0.039_28) ? chan / 12.92 : ((chan + 0.055) / 1.055) ** 2.4;

https://www.w3.org/WAI/GL/wiki/Relative_luminance

@Qix- Qix- added the bug label Apr 5, 2022
@Qix-
Copy link
Owner

Qix- commented Apr 5, 2022

Thanks, fix incoming.

@Qix- Qix- closed this as completed in f34a0ba Apr 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants