Drawing a Grid on HTML5 Canvas

Drawing a Grid on HTML5 Canvas

If you wanna draw a Grid as below in the image then following code snippet will help you. var canvas = $("#myCanvas"); var context = canvas.get(0).getContext("2d"); //setting grid color context.strokeStyle = "rgb(255, 0, 0)"; //drawding grid for(x=0;...