CanvasGame.draw = function(context){ context.fillStyle = '#888'; context.lineWidth = 4; // Draw some rectangles. context.fillRect(0, 0, 800, 600); context.fillStyle = '#f00'; } CanvasGame.FPSEngine.callDraw();
info at jsclasses dot org