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

bug(writer): pre-multiply RGB by A #111

Merged
merged 1 commit into from
Jun 9, 2024

Conversation

gustafsson
Copy link
Contributor

color.RGBA is pre-multiplied by alpha. When A is 0 the only valid value for R, G and B is 0.

When drawing a logo with an alpha channel the blending operation may overflow when R, G, B have invalid values (i.e larger than A).

color.RGBA is pre-multiplied by alpha. When A is 0 the only valid value for R, G and B is 0.

When drawing a logo with an alpha channel the blending operation may overflow when R, G, B have invalid values (i.e larger than A).
@yeqown yeqown merged commit b5ed638 into yeqown:main Jun 9, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants