此图为真机截图,设置了alpha与globalAlpha,但透明效果只在线条尾部生效
this.ctx.strokeStyle = 'rgb(0,0,0,0.1)'
this.ctx.globalAlpha=0.1
代码片段
https://developers.weixin.qq.com/s/BiGeremj7Lkg
此图为真机截图,设置了alpha与globalAlpha,但透明效果只在线条尾部生效
this.ctx.strokeStyle = 'rgb(0,0,0,0.1)'
this.ctx.globalAlpha=0.1
代码片段
https://developers.weixin.qq.com/s/BiGeremj7Lkg