This function draws grid lines on canvas, and then returns canvas itself.
Needs grid marker on any images or just grid itself, it will make you help. it supports grid line transparency.
- Run index.html
- Change bg.png as you want.
- Change input variables in function makeGrid as you want.
- ex) change line_n => change the number of lines created on grid.
- ex) change line_color => change the color of grid lines.
- ex) change grid_x, y, w, h => change the position and size of the grid