lib/functions/transparentify.js
function processChannel(channel) {
    if (0 == bestAlpha) {
      return bottom[channel]
    } else {
      return bottom[channel] + (top[channel] - bottom[channel]) / bestAlpha
    }
  }
function processChannel(channel) {
    if (0 == bestAlpha) {
      return bottom[channel]
    } else {
      return bottom[channel] + (top[channel] - bottom[channel]) / bestAlpha
    }
  }
function processChannel ( channel ) { if ( 0 == bestAlpha ) { return bottom [ channel ] } else { return bottom [ channel ] + ( top [ channel ] - bottom [ channel ] ) / bestAlpha } }
Calculate the resulting color
Calculate the resulting color