设置填充色。
tip: 如果没有设置fillstyle,默认颜色为black。
fillstyle
black
const ctx = wx.createcanvascontext('mycanvas') ctx.setfillstyle('red') ctx.fillrect(10, 10, 150, 75) ctx.draw()