Skip to content

Alpha must be between 0 and 255 #121

@DatL4g

Description

@DatL4g

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions