packages/basic-fade-overflow/src/FadeOverflow.js
function extractRgbValues(rgbString) {
  const rgbRegex = /rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*[\d\.]+\s*)?\)/;
  const match = rgbRegex.exec(rgbString);
  if (match) {
    return {
      r: parseInt(match[1]),
      g: parseInt(match[2]),
      b: parseInt(match[3])
    };
  } else {
    return null;
  }
}
function extractRgbValues(rgbString) {
  const rgbRegex = /rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*[\d\.]+\s*)?\)/;
  const match = rgbRegex.exec(rgbString);
  if (match) {
    return {
      r: parseInt(match[1]),
      g: parseInt(match[2]),
      b: parseInt(match[3])
    };
  } else {
    return null;
  }
}
function extractRgbValues ( rgbString ) { const rgbRegex = / rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*[\d\.]+\s*)?\) / ; const match = rgbRegex . exec ( rgbString ) ; if ( match ) { return { r : parseInt ( match [ 1 ] ) , g : parseInt ( match [ 2 ] ) , b : parseInt ( match [ 3 ] ) } ; } else { return null ; } }
Return the individual RGB values from a CSS color string.
Return the individual RGB values from a CSS color string .