This is a read-only mirror of pymolwiki.org

Difference between revisions of "Color"

From PyMOL Wiki
Jump to navigation Jump to search
(adding technique to use RGB)
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
===DESCRIPTION===
 
===DESCRIPTION===
  "color" changes the color of an object or an atom selection.
+
'''color''' changes the color of an object or an atom selection.
  
 
===USAGE===
 
===USAGE===
Line 16: Line 16:
 
color newcolor
 
color newcolor
 
</source>
 
</source>
 +
List of [[Color Values]]
  
 
===EXAMPLES===
 
===EXAMPLES===

Revision as of 19:26, 17 November 2005

DESCRIPTION

color changes the color of an object or an atom selection.

USAGE

color color-name
color color-name, object-name
color color-name, (selection)

PYMOL API

cmd.color( string color, string selection )

Using RGB for Color

If you prefer RGB to color any object

set_color newcolor, [r,g,b]
color newcolor

List of Color Values

EXAMPLES

color yellow, (name C*)

RGB Example:

set_color khaki, [195,176,145]
color khaki