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

chroma.average wrong computation #282

Open
marcelpi opened this issue Oct 27, 2021 · 0 comments
Open

chroma.average wrong computation #282

marcelpi opened this issue Oct 27, 2021 · 0 comments

Comments

@marcelpi
Copy link

marcelpi commented Oct 27, 2021

Hi,

I was just trying to average the red, green, blue primaries using chroma.average and I was expecting the result to be [120, 1, 1]. Instead I got [116.57, 1, 1].

Red hue = 0
Green hue = 120
Blue hue = 240

So, I was expecting the average hue to be (0 + 120 + 240) / 3 = 360 / 3 = 120.

Am I missing something here?

Screen Shot 2021-10-27 at 23 27 05
Screen Shot 2021-11-01 at 20 08 29

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

No branches or pull requests

1 participant