code: function blend(background, color) {
    var srcAlpha = color[3] / 255.0;
  
    return [
      Math.round(color[0] * srcAlpha + background[0] * (1 - srcAlpha)),
      Math.round(color[1] * srcAlpha + background[1] * (1 - srcAlpha)),
      Math.round(color[2] * srcAlpha + background[2] * (1 - srcAlpha)),
      background[3]
    ];
  }
docs: /*
  Calculates the blended color from an opaque background, and a foreground transparent color.
  
  @param {Array(byte)} background The original background color
  @param {Array(byte)} color The color to blend with the original one
  @return {Array(byte)} The blended color