Sophie

Sophie

distrib > Mandriva > 9.1 > i586 > by-pkgid > 85438f64da2ff9bf324e1b2b5fec3ae3 > files > 273

garlic-1.2-2mdk.i586.rpm

<HTML>

<HEAD>
<TITLE>
Script 3
</TITLE>
</HEAD>

<BODY BACKGROUND="garlic.gif">

<FONT FACE="Times, Helvetica">


<H1 ALIGN=CENTER>
<FONT SIZE=5>
<B>
Garlic Tutorial
</B>
</FONT>
</H1>

<H2 ALIGN=CENTER>
<FONT SIZE=5>
<B>
Script 3 (colors.script) - Predefined color schemes
</B>
</FONT>
</H2>

<HR SIZE="3">

<FONT SIZE=2>
<B>
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
<A HREF="ftp://pref.etfos.hr/pub/garlic-1.2/scripts/">
here
</A>
to download the 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>
</B>
</FONT>

<HR SIZE="3">

<PRE>
<B>
# Show predefined color schemes, version 1.2.
# This script will work if you use default .garlicrc script.
# This script requires garlic version 1.2!

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
</B>
</PRE>

<IMG SRC="../commands/colors.png">

<HR SIZE="3">

</FONT>

</BODY>

</HTML>