Closed gbayarri closed 6 years ago
Hi @gbayarri, you can use the following code in the initialization part of your program to ensure the viewer rendering atoms with different colors:
var viewer = Kekule.Widget.getWidgetById('chemViewer2D');
viewer.getRenderConfigs().getColorConfigs().setUseAtomSpecifiedColor(true);
// ......
viewer.setChemObj(mol);
Hi, @partridgejiang, it works perfectly.
Thank you!
Hi, I have a simple representation:
The output for this function is a molecule representation:
But the Nitrogens and Oxygens of this molecule have not the typical blue / red color as in the kekule composer. Is there any way to pass a parameter or call a method to do that in my code?
Thanks.