DEV Community

Olaotse
Olaotse

Posted on

Drawing curves in html5 using <canvas>

Given the following lines of code:
ctxt.beginPath();
ctxt.arc(150,100,75,0,2 * Math.PI, false);
ctxt.lineWidth = 25;
ctxt.strokeStyle = '#0f0';
ctxt.stroke();
On the second line where we have 150,100,75,0,2 can someone please help me understand exactly how those values determine the shape that my curve will take?

Top comments (0)