怎么在 canvas 里面实现多个图层混合的效果呢?

小程序 文章 2022-02-07 10:00 350 0 全屏看文

AI助手支持GPT4.0

怎么在 canvas 里面实现多个图层混合的效果呢?How to achieve the effect of mixing multiple layers in canvas?

怎么在 canvas 里面实现多个图层混合的效果呢?

目前能想到的是取出 canvas 的 pixel 数据,手动去 argb 计算,但是发现性能非常差,不知道有没有更好的办法

At present, what I can think of is to take out the pixel data of canvas and manually calculate ARGB, but I find that the performance is very poor. I don't know if there is a better way

回答:

微喵网络:

具体效果是什么样的?

社交恐怖分z:

多张图混合成一张图?

卢霄霄:

怎么个混合效果呢

-EOF-

AI助手支持GPT4.0