HTML Editor
<!DOCTYPE html> <html lang="en-US"> <body> <canvas width="160" height="110" id="point">Your browser does not support the canvas element. </canvas><script> var canvas = document.getElementById('point'); var ctx = canvas.getContext('2d'); ctx.strokeStyle = "#339933"; ctx.lineWidth = 5; ctx.beginPath(); ctx.moveTo(5, 5); ctx.lineTo(150, 100); ctx.stroke(); </script> </body> </html>
OUTPUT
×

Save as Private