Calculate RGB for False Color Map
Posted on 2004-04-22
I think we've all seen false color maps, say maps of
the USA with different elevations assigned different colors,
say from a red for high altitudes down through the spectrum to Blue or even Purple for low altitudes.
I'm trying to figure out how to calculate RGB values for
say the Red down to the Blue values, with 255 intervals.
I was thinking of using a colorpicker App to grab these
off an existing map, but you'd never get exactly 255 values
There must be a way to calculate a 255 value spectrum of RGB values from Red Though Blue.
Any comments or references to code out there on the web appreciated.