This function takes string color in hex or RGB format and adds the opacity, RGBA is passed through unchanged.
The color string (hex, RGB, RGBA).
The new opacity.
RGBA string, for example 'rgba(255, 0, 127, 0.3)'.
This function takes string color in hex or RGB format and adds the opacity, RGBA is passed through unchanged.