This is a read-only mirror of pymolwiki.org

Difference between revisions of "Get Color Indices"

From PyMOL Wiki
Jump to navigation Jump to search
m
m (7 revisions)
(One intermediate revision by the same user not shown)
Line 16: Line 16:
 
In MacPyMOL, enter the new name into the MacPyMOL color editor window,
 
In MacPyMOL, enter the new name into the MacPyMOL color editor window,
 
set the RGBs, and then click Apply.
 
set the RGBs, and then click Apply.
 +
 +
== See Also ==
 +
[[Get_Color_Tuples]]
  
 
[[Category:Commands|Get Color Indices]]
 
[[Category:Commands|Get Color Indices]]
 
[[Category:Coloring|Get Color Indices]]
 
[[Category:Coloring|Get Color Indices]]

Revision as of 02:00, 28 March 2014

get_color_indices will retrieve the RGB values for colors.

print cmd.get_color_indices()

will retrieve the color indices

print cmd.get_color_tuple(index-number)

will retrieve individual RGB components.

set_color color-name, [r,b,g]

will create a new color that will appear in the GUI list. From the open-source GUI you can use the "add" button in the color list viewer. In MacPyMOL, enter the new name into the MacPyMOL color editor window, set the RGBs, and then click Apply.

See Also

Get_Color_Tuples