I am looking for an algorithm that will map a range of floats to RGB. My google skills are apparently lacking as I can’t find exactly what I need. Here is what I want to do:
I have a range of floats: fmin <= f <= fmax
I want to map f to RGB such that
fmin = RGB(0,0,0)
fmax = RGB(255,255,255)
For example see this image:
Any suggestions? Pointers to reading info? etc?