File: script3.html

package info (click to toggle)
garlic-doc 1.6-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,216 kB
  • sloc: makefile: 5
file content (160 lines) | stat: -rw-r--r-- 1,938 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<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>