function rgbaChangeAlpha(rgba, alpha) {
  return rgba.replace(/[\d\.]+\)$/g, `${alpha})`); // eslint-disable-line no-useless-escape
}
Change alpha channel of RGBA
@param {string} rgba
@param {number} alpha from 0 to 1