title: Calculate color HEX having 2 colors and percent/position
body: <p>Is it possible to calculate a color in a middle of a gradient?</p>
  
  <pre><code>var color1 = 'FF0000';
  var color2 = '00FF00';
  
  // 50% between the two colors, should return '808000'
  var middle = gradient(color1, color2, 0.5); 
  </code></pre>
  
  <p>I only have two hex strings, and I want one in return.</p>