src/utils/color.js
function (rgbColor) {
            // TODO : Memoize this function by caching its input

            var match = rgbaRx.exec(rgbColor);
            if (match) {
                return this.setColor(+match[1], +match[2], +match[3], +match[5]);
            }

            return this.parseHex(rgbColor);
        }
function (rgbColor) {
            // TODO : Memoize this function by caching its input

            var match = rgbaRx.exec(rgbColor);
            if (match) {
                return this.setColor(+match[1], +match[2], +match[3], +match[5]);
            }

            return this.parseHex(rgbColor);
        }
function ( rgbColor ) { // TODO : Memoize this function by caching its input var match = rgbaRx . exec ( rgbColor ) ; if ( match ) { return this . setColor ( + match [ 1 ] , + match [ 2 ] , + match [ 3 ] , + match [ 5 ] ) ; } return this . parseHex ( rgbColor ) ; }
Parse an RGB or RGBA CSS color string
@name parseRGB
@memberOf me.Color
@function
@param {String} color
@return {me.Color} Reference to this object for method chaining
Parse an RGB or RGBA CSS color string