moveTo ( starting point to draw ) on Canvas



Drag the sliders to change the X, Y position of moveTo().
void gctx.moveTo(x, y);
x: Position from left edge of the canvas,
y: Position from Top edge of the canvas,
moveTo() take the pointer to starting point
var my_canvas=$('#my_canvas').get(0)
var gctx = my_canvas.getContext("2d");
gctx.beginPath()
gctx.moveTo(20,30);
gctx.lineTo(360,160);
gctx.stroke();
Your Rating





Post Comment This is for short comments only. Use the forum for more discussions.




HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2019 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer