Skip to content

Conversation

@AlaricBaraou
Copy link
Contributor

A second take after #372

This time I'm using premultipliedAlpha and custom blending logic and for colors without an opacity I get much better results when it comes to edge bleeding.
A few examples
Far left is the current Troika, middle is with this PR logic enabled, right is an SVG with equivalent settings.

whitewithoutline testPureRed noOutlineWhite noOutlineBlack grey

But if I use some transparency in the fill, the blending doesn't follow the same logic anymore. And while there is no bleeding, it's not the color the user would expect.

You can see it here, white text with 0.5 opacity on red background.
opacityBlending

The expected blend result
expectedResult
The blend result of this PR
bendingResult

I'm opening this PR to share with other, so someone might help with the last step or invalidate the idea based on some knowledge I don't have.

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.

1 participant