src/graphics/color.js
function(e) {
        if (!this._color) {
            return;
        }
        if (e.type === "DOM") {
            e.style.backgroundColor = this._color;
            e.style.lineHeight = 0;
        } else if (e.type === "canvas") {
            e.ctx.fillStyle = this._color;
            e.ctx.fillRect(e.pos._x, e.pos._y, e.pos._w, e.pos._h);
        } else if (e.type === "webgl") {
            e.program.draw(e, this);
        }
    }
function(e) {
        if (!this._color) {
            return;
        }
        if (e.type === "DOM") {
            e.style.backgroundColor = this._color;
            e.style.lineHeight = 0;
        } else if (e.type === "canvas") {
            e.ctx.fillStyle = this._color;
            e.ctx.fillRect(e.pos._x, e.pos._y, e.pos._w, e.pos._h);
        } else if (e.type === "webgl") {
            e.program.draw(e, this);
        }
    }
function ( e ) { if ( ! this . _color ) { return ; } if ( e . type === "DOM" ) { e . style . backgroundColor = this . _color ; e . style . lineHeight = 0 ; } else if ( e . type === "canvas" ) { e . ctx . fillStyle = this . _color ; e . ctx . fillRect ( e . pos . _x , e . pos . _y , e . pos . _w , e . pos . _h ) ; } else if ( e . type === "webgl" ) { e . program . draw ( e , this ) ; } }
draw function for "Color"
draw function for Color