Garlic Tutorial
Script 1 - Drawing styles for atoms
This script shows the available drawing styles for atoms. 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
atoms.script). Or, click
here
to download the script.
Type the following command at garlic prompt:
exe atoms.script
The sample image is at the bottom of this page.
# Show all drawing styles used to draw atoms. Hide all bonds!
# Atom style 0 (univisible):
load trp.pdb
pos -30 -20 0
ato 0
bon 0
# Atom style 1:
load trp.pdb
pos -10 -20 0
ato 1
bon 0
# Atom style 2:
load trp.pdb
pos 10 -20 0
ato 2
bon 0
# Atom style 3:
load trp.pdb
pos 30 -20 0
ato 3
bon 0
# Atom style 4:
load trp.pdb
pos -30 0 0
ato 4
bon 0
# Atom style 5:
load trp.pdb
pos -10 0 0
ato 5
bon 0
# Atom style 6:
load trp.pdb
pos 10 0 0
ato 6
bon 0
# Atom style 7:
load trp.pdb
pos 30 0 0
ato 7
bon 0
# Atom style spa:
load trp.pdb
pos -30 20 0
ato spa
bon 0
# Atom style bal:
load trp.pdb
pos -10 20 0
ato bal
bon 0
# Atom style big:
load trp.pdb
pos 10 20 0
ato big
bon 0