Custom blend mode? A=max(As, Ad)?

Skip to first unread message


Apr 21, 2021, 3:21:28 PMApr 21
to skia-discuss
I'm trying to achieve the following blend mode:
A=max(As, Ad)

I did achieve this using lighten blend mode and then applying a color filter to swap one of the color channel as the alpha channel. However, this did loose the alpha channel which holds the anti-alias of the shape drawn.

How could I achieve such blend mode? How could I build my own blend mode?

Any help or direction would be greatly appreciated!
- Jona
Reply all
Reply to author
0 new messages