RGBStringToRGBObject = color => {
    const openingBracketIndex = color.indexOf("("),
      closingBraketIndex = color.indexOf(")"),
      commasIndexes = [];
    for (let i = 0; i < color.length; i++) {
      if (color[i] === ",") {
        commasIndexes.push(i);
      }
    }
    return {
      r: parseInt(color.slice(openingBracketIndex + 1, commasIndexes[0]).trim()),
      g: parseInt(color.slice(commasIndexes[0] + 1, commasIndexes[1]).trim()),
      b: parseInt(color.slice(commasIndexes[1] + 1, closingBraketIndex).trim())
    };
  }
Return an object with the properties for each of the main colors(red, green, blue)
@param {String} color Receives a color in the following format: "rgb(0, 0, 0)