Draw Grid Html 5 Canvas

  • # January 17, 2013 at 1:18 pm

    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.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed