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

Fix dark color when using premultiplied alpha #22

Merged
merged 5 commits into from
Mar 17, 2024
Merged

Conversation

jabuwu
Copy link
Owner

@jabuwu jabuwu commented Mar 16, 2024

Dark color must be premultiplied by the slot color's alpha. Also removed unnecessary calls to premultiply_alpha immediately after setting alpha to 1.

jabuwu and others added 5 commits March 15, 2024 21:53
* feat: optimize some ifs in hotpath

* fix: optimize to unwrap_or_default for dark color and set 0.0 case for premultiplied alpha

* fix ci

---------

Co-authored-by: jabu <46233424+jabuwu@users.noreply.github.com>
@jabuwu jabuwu merged commit a71c0f7 into main Mar 17, 2024
8 checks passed
@jabuwu jabuwu deleted the dark_color_pma branch May 3, 2024 01:52
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