Toggle navigation
☰
HTML
CSS
Scripting
Database
<!DOCTYPE html> <html> <body> <canvas id="arcToCanvas" width="300" height="150" style="border:1px solid #d3d3d3;"></canvas> <script> var canvas = document.getElementById("arcToCanvas"); var ctx = canvas.getContext("2d"); // Drawing a rounded corner ctx.beginPath(); ctx.moveTo(50, 50); ctx.lineTo(200, 50); ctx.arcTo(250, 50, 250, 100, 50); ctx.lineTo(250, 130); ctx.strokeStyle = "#FF8C00"; ctx.lineWidth = 5; ctx.stroke(); </script> </body> </html>