Skip to content

fix: tiny-skia svg premultiply final filtered color#1841

Merged
hecrj merged 1 commit intoiced-rs:advanced-textfrom
wash2:fix-svg-color-filter
May 9, 2023
Merged

fix: tiny-skia svg premultiply final filtered color#1841
hecrj merged 1 commit intoiced-rs:advanced-textfrom
wash2:fix-svg-color-filter

Conversation

@wash2
Copy link
Contributor

@wash2 wash2 commented May 9, 2023

If the color is pre-multiplied before grabbing the alpha of the pixel, then the filter color is leaked even what the pixel is completely transparent. This is noticeable if you disable wgpu and use the dark theme in the svg example.

@hecrj hecrj added bug Something isn't working rendering labels May 9, 2023
@hecrj hecrj added this to the 0.10.0 milestone May 9, 2023
Copy link
Member

@hecrj hecrj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. Here I was hoping there would be a way to avoid premultiplying every pixel...

Thanks! 🙇

@hecrj hecrj merged commit 422b4de into iced-rs:advanced-text May 9, 2023
@wash2 wash2 deleted the fix-svg-color-filter branch May 10, 2023 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working rendering

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments