function digits(colorFnStr) {
              //hack off the trailing )
              var str = css.substr(0, css.length - 1);
              //hack off rgb(, rgba(, hsl(, hsla(
              return str.substr(colorFnStr.length + 1, str.length).split(",");
            }
Factory method. Creats a new color from any CSS color values
@param {String} css value
@return new color