title: Converting int value to a color in a gradient
body: <p>I have an int value that can range from -148 to 10 and I'm trying to map this value to a color in the following gradient:</p>
  
  <ul>
  <li>Black (-148)</li>
  <li>Blue</li>
  <li>Cyan</li>
  <li>Green</li>
  <li>Yellow</li>
  <li>Orange</li>
  <li>Red</li>
  <li>White (10)</li>
  </ul>
  
  <p>Visually, my color gradient looks like this: <img src="https://i.stack.imgur.com/TorAj.png" alt=""></p>
  
  <p>My first thought was to break the range (-148 to 10) down into smaller groups that correspond to these eight colors but that obviously results in multiple values translating into the same color.  I'd like to make use of many more or even all the colors in this gradient but I'm not sure how to go about doing this.  Can anyone offer some advice?  For what it's worth, I'm working in C#/.NET so I need to translate my int into RGB values.</p>