Garlic Tutorial

Script 3 - Predefined color schemes


This script shows some selected color schemes. All schemes shown here are hard-coded in the program. The file trp.pdb is used. You can mark, copy and paste this script to your local host (create the file colors.script). Or, click here to download the script.

Type the following command at garlic prompt:

exe colors.script

The sample image is at the bottom of this page.



# Show predefined color schemes.
# This scripts will work if you use default .garlicrc script.

load trp.pdb
pos -18 -18 0
bon 0
ato sp2
color red

load trp.pdb
pos -6 -18 0
bon 0
ato sp2
color green

load trp.pdb
pos 6 -18 0
bon 0
ato sp2
color blue

load trp.pdb
pos 18 -18 0
bon 0
ato sp2
color yellow

load trp.pdb
pos -18 -6 0
bon 0
ato sp2
color cyan

load trp.pdb
pos -6 -6 0
bon 0
ato sp2
color magenta

load trp.pdb
pos 6 -6 0
bon 0
ato sp2
color white

load trp.pdb
pos 18 -6 0
bon 0
ato sp2
color yellow-green

load trp.pdb
pos -18 6 0
bon 0
ato sp2
color cyan-green

load trp.pdb
pos -6 6 0
bon 0
ato sp2
color cyan-blue

load trp.pdb
pos 6 6 0
bon 0
ato sp2
color magenta-blue

load trp.pdb
pos 18 6 0
bon 0
ato sp2
color magenta-red

load trp.pdb
pos -18 18 0
bon 0
ato sp2
color orange

load trp.pdb
pos -6 18 0
bon 0
ato sp2
color hot

load trp.pdb
pos 6 18 0
bon 0
ato sp2
color cold

load trp.pdb
pos 18 18 0
bon 0
ato sp2
color cpk