<html> <head> <title> Script 3 </title> </head> <h1 align=center> Garlic Tutorial </h1> <h2 align=center> Script 3 (colors.script) - Predefined color schemes </h2> <hr size="3"> 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). <br><br> Type the following command at garlic prompt: <br><br> <font color=RED> exe colors.script </font> <br><br> The sample image is at the bottom of this page. <br><br> <hr size="3"> <pre> # 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 </pre> <img src="../commands/colors.png"> <hr size="3"> </html>