다양한 도형 그리기const canvas = document.getElementById('myCanvas'); const ctx = canvas.getContext('2d'); // 원 그리기 ctx.beginPath(); ctx.arc(100, 100, 50, 0, 2 * Math.PI); ctx.fillStyle = 'blue'; ctx.fill(); // 사각형 그리기 ctx.beginPath(); ctx.rect(200, 50, 100, 100); ctx.strokeStyle = 'red'; ctx.lineWidth = 2; ctx.stroke(); // 삼각형 그리기 ctx.beginPath(); ctx.moveTo(300, 200); ctx.lineTo(350, 250); ctx.lineTo(..