If I have an HTML Canvas context and do:
ctx.beginPath(); ctx.moveTo(10,10); ctx.lineTo(20,30); ctx.closePath(); ctx.stroke();
...a line is
As far as I know there's no direct way to access arguments passed to various ctx methods (ie. moveTo in this case). You can wrap the Context API into a class of its own to do this, however. See [1] and [2] for reference.