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

Alpha must be between 0 and 255 #121

Open
DatL4g opened this issue Mar 12, 2024 · 0 comments
Open

Alpha must be between 0 and 255 #121

DatL4g opened this issue Mar 12, 2024 · 0 comments

Comments

@DatL4g
Copy link
Contributor

DatL4g commented Mar 12, 2024

This is hard to reproduce and I only faced this error myself once as well as only once by another user.
So I have no idea by what this is caused.

Could we change https://github.com/jordond/kmpalette/blob/main/androidx-palette/src/commonMain/kotlin/com/kmpalette/palette/internal/utils/ColorUtils.kt#L78 to use min and max to force the alpha to be between 0 and 255 instead of throwing an exception?

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