The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › Other › Draw Grid Html 5 Canvas
I’m trying to draw in html5 with canvas, I need to draw a grid. I pass two parameters X and Y.
This example does arme manually: http://jsbin.com/ifohor/4/edit
The idea is to make it dynamic: http://jsbin.com/ifohor/3/edit
But I do not quite know how to calculate Movex, moveY, Linex, Liney and increaseLine.
Any help would be appreciated.