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 drawn between 10,10 and 20,30. Suppose I have this:
ctx.beginPath();
ctx.moveTo(10,10);
myFunction(ctx);
Is there any way for myFunction()
to find out that the path 'cursor' is currently at 10,10
?