createPattern (img, 'repeat'); ctx.fillStyle = pattern; ctx.fillRect(x, y, w, h);. I know I could use repeated calls to ctx.
確定! 回上一頁