<!DOCTYPE html> <html> <body> <canvas id="mycanvas" width="300" height="240" style="border: 1px solid blue"> </canvas> <script> var mycanvas = document.getElementById('mycanvas'); var mycontext=mycanvas.getContext("2d"); mycontext.beginPath(); mycontext.moveTo(100,150); mycontext.lineWidth = 5; mycontext.strokeStyle = "#FF00FF"; mycontext.lineTo(200,50); mycontext.stroke(); </script> </body> </html>Dosyayı İndir