code: function(o) {
              if (o instanceof Array) {
                  return this._fromRGBArray(o);
              }
              if ("string" == typeof o) {
                  return this._fromCSS(trim(o));
              }
              if (o.hasOwnProperty('red') &&
                  o.hasOwnProperty('green') &&
                  o.hasOwnProperty('blue')) {
                  return this._fromRGB(o);
              }
              // nothing matchs, not an RGB object
          }
docs: /* fromObject attempts to convert an object o to and RGB
  instance. This accepts an object with red, green and blue
  members or a string. If the string is a known CSS color name
  or a hexdecimal string it will accept it.