Blending Path Color Results in Different output if Background has Dark Color #1311
Replies: 1 comment 6 replies
-
Hey @Kaushikdugar, That's a good question mate. The thing is, when you are using the multiple effect, I will say in my own words: The color in the background in your first case white(r: 255, g: 255, b: 255) it's been multiplied by the color in the front, let imagine a red(r: 215, g: 0, b: 0), and it works perfect as you mentioned, but when you have the blackish (r: 15, g: 15, b: 15) and the same red you are going to have a problem because the this value it's to low and it will "remove light". I don't full understand what you are trying to achieve here, can you explain or share some images as example? But one idea is, you can try to first normalize the background, maybe applying grey and then some light, and use a multiplied based in the maximum and minimum light (blacks and whites), from the background. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am applying SKIA Path on top of an SkImage and changing the Path color using BlendMode multiply. It works great if the background color is white and also retains shadows and texture with the correct color applied but when there is a dark background color then the output is not correct. Is there anything else we need to apply with the Blend Mode to get better results for darker color backgrounds.
Beta Was this translation helpful? Give feedback.
All reactions