This is a read-only mirror of

Get color index

From PyMOL Wiki
Revision as of 03:27, 13 November 2017 by Cchem (talk | contribs) (2 revisions)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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')
PyMOL>print cmd.get_color_tuple(1)
(0.0, 0.0, 0.0)

See Also