Function to find the HEX colour code corresponding to an input colour with a set opacity level (i.e. emulate transparency)

hexa2hex(input.colour, opacity, bg.colour = "white")

Arguments

input.colour

Initial colour.

opacity

Desired level of transparency (number between 0 and 1).

bg.colour

Colour of the background. Defaults to 'white'.