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

Palette's GetNearest and GetNearestIndex Methods do not Document Behavior with Respect to Alpha #98

Open
Chris3606 opened this issue Jan 15, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@Chris3606
Copy link
Contributor

The distance calculation used in these methods doesn't take alpha into account at all. This behavior is undocumented currently.

I think either:

  • The function should take alpha into account
  • The function should document that decisions on closest color are made entirely according to RGB values
@Chris3606 Chris3606 added the enhancement New feature or request label Jan 15, 2023
@Chris3606 Chris3606 changed the title Palette's GetNearest and GetNearestIndex Methods do not take into account alpha Palette's GetNearest and GetNearestIndex Methods do not Document Behavior with Respect to Alpha Jan 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant