src/renderable/colorlayer.js
function (renderer, rect) {
            var color = renderer.getColor();
            var vpos = me.game.viewport.pos;
            renderer.setColor(this.color);
            renderer.fillRect(
                rect.left - vpos.x, rect.top - vpos.y,
                rect.width, rect.height
            );
            renderer.setColor(color);
        }
function (renderer, rect) {
            var color = renderer.getColor();
            var vpos = me.game.viewport.pos;
            renderer.setColor(this.color);
            renderer.fillRect(
                rect.left - vpos.x, rect.top - vpos.y,
                rect.width, rect.height
            );
            renderer.setColor(color);
        }
function ( renderer , rect ) { var color = renderer . getColor ( ) ; var vpos = me . game . viewport . pos ; renderer . setColor ( this . color ) ; renderer . fillRect ( rect . left - vpos . x , rect . top - vpos . y , rect . width , rect . height ) ; renderer . setColor ( color ) ; }
draw the color layer
@ignore
draw the color layer