Code
Execute
<!DOCTYPE html> <html> <head> <title>Wikitechy arc() Method in Canvas</title> </head> <body> <h1>Wikitechy arc() Method in Canvas</h1> <canvas id="wikitechyCanvas" width="400" height="250" style="border:1px solid #00ffff;"> </canvas> <script> var canvas = document.getElementById("wikitechyCanvas"); var context = canvas.getContext("2d"); context.beginPath(); context.arc(200, 125, 80, 0, 2 * Math.PI); context.stroke(); </script> </body> </html>
Result