<canvas type="webgl" id="pag" ></canvas>
wx.createSelectorQuery().select('#pag').node().exec(async(res) => {
const canvas = res[0].node;
const context = canvas.getContext("webgl");
const dpr = wx.getSystemInfoSync().pixelRatio;
const { pixelRatio } = wx.getSystemInfoSync();
canvas.width = 480*pixelRatio;
canvas.height = 680*pixelRatio;
})
除了不用context.scale()来解决模糊问题 还有其它法api可以解决吗 我看这个scale已经停止维护了
把这个比例写大一点看看