# Garlic Tutorial

## Script 3 (colors.script) - 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, version 1.2 and later versions.
    # This script will work if you use default .garlicrc script.
    # This script requires garlic version 1.2 or later!

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

    # Now inform user that refreshing is off:
    title 1 50 50 "Please be patient ..."

    # Switch refreshing off:
    refresh off

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    # Hide the title:
    title 1 off

    # Switch refreshing on:
    refresh