@zero-dependency/utilsFunctionsrgbToHexrgbToHex CallablergbToHex(color: string | Rgb): stringConverts an RGB(A) color strong or object to a hexadecimal color string.@examplergbToHex({ r: 255, g: 255, b: 255 }) // '#ffffff'rgbToHex('rgb(255, 255, 255)') // '#ffffff'rgbToHex('rgba(255, 255, 255, 0.5)') // '#ffffff80'Parameterscolor: string | RgbAn object that represents an RGB color.Returns stringA string that represents a hexadecimal color code.
Converts an RGB(A) color strong or object to a hexadecimal color string.