game.js
// Clears the canvas with the color that is passed in.
Clears the canvas with the color that is passed in.
Clears the canvas with the color that is passed in .
function clearCanvas(strColor) {
	context.fillStyle = strColor;
	context.beginPath();
	context.fillRect(0, 0, canvas.width, canvas.height);
	context.closePath();
	context.fill();
}
function clearCanvas ( strColor ) { context . fillStyle = strColor ; context . beginPath ( ) ; context . fillRect ( 0 , 0 , canvas . width , canvas . height ) ; context . closePath ( ) ; context . fill ( ) ; }
Clears the canvas with the color that is passed in.
Clears the canvas with the color that is passed in .