title: Algorithm to convert any positive integer to an RGB value
body: <p>We have a heatmap we want to display. The numbers that will make up the values being displayed are unknown (except that they will be positive integers). The range of numbers is also unknown (again, except that they will be posiitive integars). The range could be between 0 and 200 or 578 and 1M or whatever. It depends on the data, which is unknown.</p>
  
  <p>We want to take an unknown range of positive integers and turn it into a scaled (compressed) range to be displayed with RGB values in a heatmap. I hope this makes sense.
  Thanks!</p>
  
  <p>I want to clarify that the min/max values need to be "plugged" into the forumla.</p>