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

Way to return number of pixels in each colour #35

Open
dilby opened this issue Aug 9, 2023 · 4 comments
Open

Way to return number of pixels in each colour #35

dilby opened this issue Aug 9, 2023 · 4 comments

Comments

@dilby
Copy link

dilby commented Aug 9, 2023

Is there a way to return the amount of pixels for each colour in the chosen pallet?
Was hoping to find something in the API butc an't see an option.

For example: 4 blue, 24 orange, 32 white.

Thank you

@giventofly
Copy link
Owner

Hi,

you mean the pixel color after the image is processed ?

@dilby
Copy link
Author

dilby commented Aug 9, 2023 via email

@giventofly
Copy link
Owner

You can do that, edit the function that calculates the new pixel color and store it on an object to store those the stats

@EhabAmawi
Copy link

@dilby did you manage to do such a task?
if yes can you share it, please

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

3 participants