WeChat applet API drawing setShadow (set shadow style)
setShadow
Definition
Set the shadow style.
Tip: If not set, the default value of offsetX is 0, the default value of offsetY is 0, the default value of blur is 0, and the default value of color is black
.
Parameters
Example
const ctx = wx.createCanvasContext('myCanvas') ctx.setFillStyle('red') ctx.setShadow(10, 50, 50, 'blue') ctx.fillRect(10, 10, 150, 75) ctx.draw()