fillStyle = "red"; // draw rectange with x & y relative to new origin ctx.fillRect(-50, -50, 100, 100); // Reset origin ctx.restore(); ctx.
確定! 回上一頁