void OEAddResidueHighlighting(OE2DActiveSiteDisplay &adisp,
                              const OEDepict::OEPen &pen,
                              const OEChem::OEResidue &residue)

Highlights the given residues in the active site display.

The OE2DActiveSiteDisplay object of which residues being highlighted.
The OEPen object that specifies the style of the highlighting.
The residue being highlighted.

Example: (See image generated in Example of highlighting residues)

The OEGetLightColors function in the below example returns eight colors that is used to highlight only the first eight residues in the generated image.

private static void OEAddHighlighting_OEResidue(OE2DActiveSiteDisplay adisp) {
    OEColorIter citer = oechem.OEGetLightColors();
    for (OEResidue residue : adisp.GetDisplayedResidues()) {
        if (citer.hasNext()) {
            OEColor color = citer.next();
            OEPen pen = new OEPen(color, color, OEFill.On, 1.0);
            oegrapheme.OEAddResidueHighlighting(adisp, pen, residue);

Example of highlighting residues