I’ve exported some texture data from Molflow and would like to match my data analysis to your existing color map scheme used in texture scaling. Would it be possible to give some insight about the color map you use and how it’s applied to the texture?
Hello Alejandro.
Molflow uses the rainbow color map (red to purple).
The exact settings (min/max and lin/log) for a model can be seen in Texture Scaling.
The rainbow color map is extensively documented in literature (example), and the exact code that generates the RGB values is this:
First we define the eight base colors (RRGGBB, all hex values):
// Rainbow eight base colors
unsigned long rainbowCol[] = { 0x000000, //Black
0xFF0000, //Red
0xFF8030, //Orange
0xF8F800, //Yellow
0x28FF28, //Green
0x0040FF, //Light Blue
0x0000B0, //Dark Blue
0x800090, //Purple 1
0xF00080 }; //Purple 2
Then we generate the RGB values from 0 to 65535, always interpolating between the nearest two base colors: