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 brigthness #133

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix brigthness #133

wants to merge 1 commit into from

Conversation

neoteknic
Copy link

The most accurate way to set brigthness for RGB, is to alway take the max R,G,B value (If you try a colorpicker, you set 150, 43,56, and you change only the hue, you alway have 150 on R, G or B, and brigthness will not change.
exemaple : With RGB (0 ,0, 255) you expect a 100% brigth blue so bri = 255
If you take Y you have a wrong very low blue (4,7% brightness).

The most accurate way to set brigthness for RGB, is to alway take the max R,G,B value (If you try a colorpicker, you set 150, 43,56, and you change only the hue, you alway have 150 on R, G or B, and brigthness will not change.
exemaple : With RGB (0 ,0, 255) you expect a 100% brigth blue so bri = 255
If you take Y you have a wrong very low blue (4,7% brightness).
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.

1 participant