platform/video.videojs/dist/video.es.js
function constructColor(color, opacity) {
  return 'rgba(' +
  // color looks like "#f0e"
  parseInt(color[1] + color[1], 16) + ',' + parseInt(color[2] + color[2], 16) + ',' + parseInt(color[3] + color[3], 16) + ',' + opacity + ')';
}
function constructColor(color, opacity) {
  return 'rgba(' +
  // color looks like "#f0e"
  parseInt(color[1] + color[1], 16) + ',' + parseInt(color[2] + color[2], 16) + ',' + parseInt(color[3] + color[3], 16) + ',' + opacity + ')';
}
Construct an rgba color from a given hex color code.

@param {number} color
Hex number for color, like #f0e.

@param {number} opacity
Value for opacity, 0.0 - 1.0.

@return {string}
The rgba color that was created, like 'rgba(255, 0, 0, 0.3)'.

@private