📅  最后修改于: 2022-03-11 15:03:04.088000             🧑  作者: Mango
// This will convert "rgb(r,g,b)" into [r,g,b] so we can use the "+" to convert them back to numbers before using toString
rgb = rgb.substr(4).split(")")[0].split(separator);