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

Add an optional pass to clamp premultiplied alpha #23

Open
hpjansson opened this issue Dec 21, 2023 · 0 comments
Open

Add an optional pass to clamp premultiplied alpha #23

hpjansson opened this issue Dec 21, 2023 · 0 comments
Assignees
Labels
api feature New feature or request

Comments

@hpjansson
Copy link
Owner

We should be able to clamp passed-in premultiplied alpha values to be at least the same magnitude as the color channels. This may not already be the case if the user provides a corrupt image.

It'll slow us down, so there should be a SMOL_DISABLE_ALPHA_CLAMP flag for performance freaks like yours truly.

@hpjansson hpjansson added the api label Dec 21, 2023
@hpjansson hpjansson self-assigned this Dec 21, 2023
@hpjansson hpjansson added the feature New feature or request label Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant