src/video/canvas/canvas_renderer.js
function (col, opaque) {
            this.save();
            this.resetTransform();
            this.backBufferContext2D.globalCompositeOperation = opaque ? "copy" : "source-over";
            this.backBufferContext2D.fillStyle = (col instanceof me.Color) ? col.toRGBA() : col;
            this.fillRect(0, 0, this.backBufferCanvas.width, this.backBufferCanvas.height);
            this.restore();
        }
function (col, opaque) {
            this.save();
            this.resetTransform();
            this.backBufferContext2D.globalCompositeOperation = opaque ? "copy" : "source-over";
            this.backBufferContext2D.fillStyle = (col instanceof me.Color) ? col.toRGBA() : col;
            this.fillRect(0, 0, this.backBufferCanvas.width, this.backBufferCanvas.height);
            this.restore();
        }
function ( col , opaque ) { this . save ( ) ; this . resetTransform ( ) ; this . backBufferContext2D . globalCompositeOperation = opaque ? "copy" : "source-over" ; this . backBufferContext2D . fillStyle = ( col instanceof me . Color ) ? col . toRGBA ( ) : col ; this . fillRect ( 0 , 0 , this . backBufferCanvas . width , this . backBufferCanvas . height ) ; this . restore ( ) ; }
Clears the main framebuffer with the given color
@name clearColor
@memberOf me.CanvasRenderer.prototype
@function
@param {me.Color|String} color CSS color.
@param {Boolean} [opaque=false] Allow transparency [default] or clear the surface completely [true]
Clears the main framebuffer with the given color