Prev Demo
Sangle Arc()
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title>sAngle Arc</title> </head> <body> <h2 style="color:green">sAngle 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.4 * Math.PI, 2 * Math.PI); context.stroke(); </script> </body> </html>
Note: We DO NOT save your trial code in our database.
Output