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 script will work if you use default .garlicrc configuration file.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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