| c++ Programming Glossary: interpolateHow to interpolate a color sequence? http://stackoverflow.com/questions/5860100/how-to-interpolate-a-color-sequence  to interpolate a color sequence  I need to interpolate or change gradually.. to interpolate a color sequence  I need to interpolate or change gradually a sequence of colors so it goes from colorA.. 
 Grayscale to Red-Green-Blue (MATLAB Jet) color scale http://stackoverflow.com/questions/7706339/grayscale-to-red-green-blue-matlab-jet-color-scale  question   I hope this is what you're looking for double interpolate double val double y0 double x0 double y1 double x1 return val.. if grayscale 0.33 return 1.0 else if grayscale 0.33 return interpolate grayscale 1.0 0.33 0.0 0.33 else return 0.0 double green double.. 0.0 unexpected grayscale value if grayscale 0.33 return interpolate grayscale 0.0 1.0 1.0 0.33 else if grayscale 0.33 return 1.0.. 
 |