Jump to content

Get color index

From PyMOL Wiki
Revision as of 02:23, 26 October 2017 by Jaredsampson (talk | contribs) (Add See Also and Categories)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

get_color_index in combination with get_color_tuple will retrieve the RGB values for a single color.

PyMOL>print cmd.get_color_index('black')
1
PyMOL>print cmd.get_color_tuple(1)
(0.0, 0.0, 0.0)


See Also