I need to create a figure of a molecule in which the bonds are colored in a RGB scale according to the values read from a data file. The data file contains, for example, the increase or decrease in the bond length compared to some reference structure. In this way, the intensity in a color range red-white-blue would be given by the difference between the relaxed and unrelaxed bond lengths, similarly to the figure attached.
I have tried to make this figure using jmol, but I didn't have success so far. Could anyone suggest a program that is able to do such figure? Or could someone point out any suggestion of how to do this color maps on chemical bonds?
I will be grateful for any help you can provide.
All the best