changing rgb color values to represent a value
<p>I am trying to make a color change on a canvas in java to respresent how strong or weak the values respresented by color are relative to each other.</p>

<p>The rgb colors have to be the same color just different shades, like white to grey to black and every shade of grey in between. How can I change the rgb values considering that the values I am representing vary a lot, from -9999999 to positive 9999999.</p>
