lineTo of line on Canvas

Drag the sliders to change the X, Y postion of lineTo().
void gctx.lineTo(x, y);
x: Position from left edge of the canvas,
y: Position from Top edge of the canvas,
lineTo() actually does not draw the line , it happens only by stroke() command.
var my_canvas=$('#my_canvas').get(0)
var gctx = my_canvas.getContext("2d");

Post your comments , suggestion , error , requirements etc here .

We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2021 All rights reserved worldwide Privacy Policy Disclaimer