Simple enough question (could be wrong)
im looking to animate between two points in a straight line, using HTML5 and/or Jquery.
ctx.beginPath(); ctx.mov
This works for me :
HTML :
JS :
var c = document.getElementById('canvas'); var ctx = c.getContext('2d'); ctx.beginPath(); ctx.moveTo(0, 0); // a ctx.lineTo(100, 100); // b ctx.stroke();