v2.2 setBlendFunc in canvas mode can use?

can setBlendFunc be used in canvas mode, or is there any other method for canvas mode to get the blend effect.

Hi zhihao,

There is only supports two blendFunc combination on Canvas mode: it turns on “lighter” globalCompositeOperation when setting blendFunc to {src:gl.SRC_ALPHA,dst:gl.ONE} or {src:gl.ONE,dst:gl.ONE}.

The other method is pixel operation, but it’s very slow.

Regards
David

thanks David, i got it