Hi All,

Does anyone know how to highlight atoms in different colours using the CDK renders? Stephan and I have been scratching our heads and really looks like itís not possible. We have code for this in Knime but simply canít believe itís not in the main rendering code. 

I always thought the ColorHash was how it was done but this (see below) only works for bonds :/.

Map<IChemObject,Color> highlight = Maps.newHashMap();
highlight.put(m.getAtom(0), Color.green);
highlight.put(m.getAtom(1), Color.red);
renderer.getRenderer2DModel().set(RendererModel.ColorHash.class, highlight);

Cheers,
J