-
Notifications
You must be signed in to change notification settings - Fork 45
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
Why use Y for brithness ? #132
Comments
That's just how the XYZ scheme works. Check out the output of this test script (scroll to the bottom). As you can see, an RGB value of [0,0,255] yields a brightness of 12. However, it also shows that if you take the X and Y from that RGB but use a brightness of 255, you get a wildly invalid RGB value where the blue is 942. If you look here on WIkipedia and here in the code, you can see how the formulas match up. |
BUT..... after playing with Colorizer.org, I can see that the B slider under HSB does in fact behave like |
Yes, |
You can use my fork, color logic fix integrated better if you work with RGB, and more features. |
When I uset setRGB (0,0,255) I want max brightness blue but instead I have a very very low brightness with blue.
Why use y for brightness, instead of max([R,G,B]) ? It seem more logical for me ?
What do you think ?
The text was updated successfully, but these errors were encountered: