Garlic Tutorial
Script 2 - Drawing styles for bonds
This script shows the available drawing styles for bonds. Note that nothing
is visible for style "0" (first row, first column)! The file trp.pdb is used.
You can mark, copy and paste this script to your local host (create the file
bonds.script). Or, click
here
to download the script.
Type the following command at garlic prompt:
exe bonds.script
The sample image is at the bottom of this page.
# Show all drawing styles used to draw bonds. Atoms are hidden!
# This scripts will work if you use default .garlicrc script.
# Bond style 0:
load trp.pdb
pos -12 -6 -100
ato 0
bon 0
# Bond style 1:
load trp.pdb
pos 0 -6 -100
ato 0
bon 1
# Bond style 2:
load trp.pdb
pos 12 -6 -100
ato 0
bon 2
# Bond style 3:
load trp.pdb
pos -12 6 -100
ato 0
bon 3
# Bond style 4:
load trp.pdb
pos 0 6 -100
ato 0
bon 4
# Bond style 5:
load trp.pdb
pos 12 6 -100
ato 0
bon 5