Javascript Canvas, empty chess board

Short example of how to draw a empty chess grid using canvas and javascript. Javascript Code, save as chessboard.js: var chess={ ctx: null, width: 402, height: 402, white: “#fff”, lightGrey: “#000000”, black: “#000000”, squareWidth: 0, squareHeight: 0, graphDiv: “chessCanvas”, initValues: function(){ this.squareWidth = (this.width-2) / 8; this.squareHeight = (this.height-2) / 8; }, resetBackground: function(){ this.ctx.canvas.width… Read More Javascript Canvas, empty chess board