Code
Execute
<!DOCTYPE html> <html> <head> <title>wikitechy quadraticCurveTo method</title> </head> <body> <h2>wikitechy quadraticCurveTo method<h2> <canvas id="wikitechyCanvas" width="300" height="150" style="border:1px solid blue;"> </canvas> <script> var c = document.getElementById("wikitechyCanvas"); var context = c.getContext("2d"); context.beginPath(); context.moveTo(20, 40); context.quadraticCurveTo(30, 100, 200, 30); context.stroke(); </script> </body> </html>
Result