home Canvas Canvasリファレンス clearRect() メソッド 実際のサンプル clearRect() メソッド 実行結果 コード ctx.fillStyle = "rgb(200, 0, 0)"; ctx.fillRect(0, 0, 100, 100); ctx.clearRect(20, 30, 60, 40); clearRect() メソッドの説明に戻る