def zalpha(colors, zs):
 colors = get_colors(colors, len(zs))
 if len(zs):
  norm = Normalize(min(zs), max(zs))
  sats = (1 - (norm(zs) * 0.7))
  colors = [(c[0], c[1], c[2], (c[3] * s)) for (c, s) in zip(colors, sats)]
 return colors

def zalpha ( colors , zs ) : colors = get_colors ( colors , len ( zs ) ) if len ( zs ) : norm = Normalize ( min ( zs ) , max ( zs ) ) sats = ( 1 - ( norm ( zs ) * 0.7 ) ) colors = [ ( c [ 0 ] , c [ 1 ] , c [ 2 ] , ( c [ 3 ] * s ) ) for ( c , s ) in zip ( colors , sats ) ] return colors
modify the alphas of the color list according to depth .