code: 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);
          }
      }
docs: draw function for "Color"