src/main/resources/org/guiiz/js/snake.js
// Lets first create a generic function to paint cells
Lets first create a generic function to paint cells
Lets first create a generic function to paint cells
function paint_cell(x, y) {
	ctx.fillStyle = "blue";
	ctx.fillRect(x * cw, y * cw, cw, cw);
	ctx.strokeStyle = "white";
	ctx.strokeRect(x * cw, y * cw, cw, cw);
}
function paint_cell ( x , y ) { ctx . fillStyle = "blue" ; ctx . fillRect ( x * cw , y * cw , cw , cw ) ; ctx . strokeStyle = "white" ; ctx . strokeRect ( x * cw , y * cw , cw , cw ) ; }
Lets first create a generic function to paint cells
Lets first create a generic function to paint cells