Converts RGBA to a hex colour code
Arguments
- colour_rgba
A vector of length 4:
c(red value, green value, blue value, alpha). All colour values must be between 0 and 255. Alpha must be between 0 and 1.- background_colour
Defaults to white. Users can specify a different colour to get the hex code for their original colour blended with a specified background colour.
background_colourmust either be a recognised colour name (e.g. "white"), a hex colour code (e.g. "#ffffff") or vector of length 3 (red value, green value, blue value), with all values between 0 and 255. The default value is white ("#ffffff").- ...
US spellings of the arguments above:
color_rgbaandbackground_color. Other argument names give an error.
