Line color: Difference between revisions
Jump to navigation
Jump to search
(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...') |
(No difference)
|
Latest revision as of 16:25, 6 July 2009
Overview
Line_color controls per atom/bond coloring in objects or selections.
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