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

Allow the user to define part of the palette #5

Open
haroldo-ok opened this issue Jan 22, 2015 · 0 comments
Open

Allow the user to define part of the palette #5

haroldo-ok opened this issue Jan 22, 2015 · 0 comments

Comments

@haroldo-ok
Copy link
Owner

Objective

Allow the user to optionally define a few that would have to be obligatorily present on the end palette, and then let the program choose the rest, just in case he/she has a few reserved colors.

How?

The histogram of the quantizer would be prepopulated with those colors, putting an artificially high value on the color count of the corresponding slots on the histogram.
After the colors are reduced, the final palette may need to be reordered to fit what the user passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant