ctx.translate(x, y) ctx.rotate(angle) // 透過傳入函式來繪製圖形 drawFunc() // ... ctx.restore() // 還原先前畫布狀態 } ...
確定! 回上一頁