Skip to content

Commit

Permalink
Colour the surface site X atoms when drawing.
Browse files Browse the repository at this point in the history
Not sure what colour to use. Some weird purple for now :-/
  • Loading branch information
rwest committed Feb 6, 2019
1 parent 467f976 commit d689acb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rmgpy/molecule/draw.py
Original file line number Diff line number Diff line change
Expand Up @@ -1218,6 +1218,7 @@ def __renderAtom(self, symbol, atom, x0, y0, cr, heavyFirst=True, drawLonePairs=
elif heavyAtom == 'Cl': cr.set_source_rgba(0.0, 1.0, 0.0, 1.0)
elif heavyAtom == 'Br': cr.set_source_rgba(0.6, 0.2, 0.2, 1.0)
elif heavyAtom == 'I': cr.set_source_rgba(0.5, 0.0, 0.5, 1.0)
elif heavyAtom == 'X': cr.set_source_rgba(0.5, 0.25, 0.5, 1.0)
else: cr.set_source_rgba(0.0, 0.0, 0.0, 1.0)

# Text itself
Expand Down

0 comments on commit d689acb

Please sign in to comment.