Line color

From PyMOLWiki
Revision as of 15:25, 6 July 2009 by Inchoate (talk | contribs) (Created page with '= Overview = Line_color controls per atom/bond coloring in objects or selections. [[Image:lw2.png|thumb|center|400px|Line_color changed using set_bond. (Also, line_width wa...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Overview

Line_color controls per atom/bond coloring in objects or selections.

Line_color changed using set_bond. (Also, line_width was changed using set_bond)

Syntax

# set the color of the lines to colorName
set line_color, colorName

# set per atom/bond line colors (see examples)
set_bond line_color, colorName, objSel

# example
fetch 1te1
as lines
orient
# draw all lines red
set line_color, red
# draw just chain A, blue
set_bond line_color, marine, blue
# color the lysines magnesium!
set_bond line_color, magnesium, resn lys

See Also