public/js-roguelike-skeleton/src/renderer.js
function(color, ctx){
            ctx = ctx || this.bufferCtx;
            ctx.fillStyle = color || this.bgColor;
            ctx.fillRect(
                0,
                0,
                this.canvas.width,
                this.canvas.height
            );
        }
function(color, ctx){
            ctx = ctx || this.bufferCtx;
            ctx.fillStyle = color || this.bgColor;
            ctx.fillRect(
                0,
                0,
                this.canvas.width,
                this.canvas.height
            );
        }
function ( color , ctx ) { ctx = ctx || this . bufferCtx ; ctx . fillStyle = color || this . bgColor ; ctx . fillRect ( 0 , 0 , this . canvas . width , this . canvas . height ) ; }
Fills the canvas with a given color.
@method fillBg
@param {String} [color=this.bgColor]
@param {CanvasRenderingContext2D} [ctx=this.bufferCtx]
Fills the canvas with a given color .