code: function processChannel(channel) {
      if (0 == bestAlpha) {
        return bottom[channel]
      } else {
        return bottom[channel] + (top[channel] - bottom[channel]) / bestAlpha
      }
    }
docs: Calculate the resulting color