R/colour-rgb.R
parse_colour_rgb_to_hex.Rd
MDN https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/rgb()
parse_colour_rgb_to_hex(rgb_text)
string representing an rgb() or rgba() colour e.g. 'rgb(255, 0, 0)'
rgb()
rgba()
'rgb(255, 0, 0)'
hex colour
if (FALSE) { parse_colour_rgb_to_hex('rgb(255, 0, 0)') }