Prev Demo
Sangle Arc()
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title>sAngle</title> </head> <body> <h2 style="color:green">eAngle of the Clock is used to project an angle in a shape </h2> <canvas id="myCanvas" width="400" height="250" style="border:5px solid red;"> </canvas> <script> var canvas = document.getElementById('myCanvas'); var context = canvas.getContext('2d'); context.beginPath(); context.arc(100, 95, 75, 0* Math.PI, 2 * Math.PI); context.stroke(); </script> </body> </html>
Note: We DO NOT save your trial code in our database.
Output