How to color bonds by the strain?

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?


[![Color map on graphene structure according to the changes in the bond length. Extracted from the book Nanodevices and Nanomaterials for Ecological Security.](https://i.stack.imgur.com/VBqUq.png)](https://i.stack.imgur.com/VBqUq.png)


I will be grateful for any help you can provide.


All the best




[StrainViz](https://github.com/CurtisColwell/StrainViz) is the program that might be useful [[1](https://doi.org/10.1039/D0SC00629G)].


### Reference


1. Colwell, C. E.; Price, T. W.; Stauch, T.; Jasti, R. Strain Visualization for Strained Macrocycles. *Chem. Sci.* **2020**, 11 (15), 3923–3930. DOI: [10.1039/D0SC00629G](https://doi.org/10.1039/D0SC00629G).


 4