forked from wwwtyro/speck
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
167 lines (139 loc) · 6.96 KB
/
index.html
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
161
162
163
164
165
166
167
<html>
<head>
<title>Speck</title>
<link rel="icon" href="/static/favicon.png" type="image/x-icon">
<script src="static/bundle.js"></script>
<link rel="stylesheet" type="text/css" href="static/index.css">
</head>
<body>
<div id="render-container">
<canvas id="imposter-canvas"></canvas>
</div>
<div id="controls-container">
<div id="controls-menu">
<button id="menu-button-structure">Structure</button>
<button id="menu-button-render">Render</button>
<button id="menu-button-share">Share</button>
<button id="menu-button-help">Help</button>
<button id="menu-button-about">About</button>
</div>
<div id="controls-structure">
<h2>Samples</h2>
<select id="controls-sample">
<option value="protein0">Protein 4E0O</option>
<option value="protein1">Protein 4QCI</option>
<option value="testosterone" selected="selected">Testosterone</option>
<option value="au">Gold Nanoparticle</option>
<option value="benzene">Benzene</option>
<option value="caffeine">Caffeine</option>
<option value="methane">Methane</option>
</select>
<h2>Custom</h2>
Paste xyz file data:<br>
<textarea id="xyz-data" rows="4" columns="10"></textarea><br><br>
<button id="xyz-button">Load</button><br><br>
</div>
<div id="controls-render">
<table>
<tr>
<td align="right">Atom radius</td>
<td><input id="atom-radius" type="range" min="1" max="100" value="50" class="control-width"></td>
<td id="atom-radius-text"></td>
<td class="control-help">a + scrollwheel</td>
</tr>
<tr>
<td align="right">Relative atom radius</td>
<td><input id="relative-atom-radius" type="range" min="0" max="100" value="100" class="control-width"></td>
<td id="relative-atom-radius-text"></td>
<td class="control-help">z + scrollwheel</td>
</tr>
<tr>
<td align="right">Bonds</td>
<td><input type="checkbox" id="bonds"></td>
</tr>
<tr>
<td align="right">Bond radius</td>
<td><input id="bond-radius" type="range" min="0" max="100" value="50" class="control-width"></td>
<td id="bond-radius-text"></td>
<td class="control-help">b + scrollwheel</td>
</tr>
<tr>
<td align="right">Bond threshold</td>
<td><input type="number" step="0.1" min="0.0" max="4.0" id="bond-threshold" value="1.2" class="control-width"></td>
</tr>
<tr>
<td align="right">Ambient occlusion</td>
<td><input id="ambient-occlusion" type="range" min="0" max="100" value="50" class="control-width"></td>
<td id="ambient-occlusion-text"></td>
<td class="control-help">o + scrollwheel</td>
</tr>
<tr>
<td align="right">Samples per frame</td>
<td>
<select id="samples-per-frame">
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="4">4</option>
<option value="8">8</option>
<option value="16">16</option>
<option value="32" selected="selected">32</option>
</select>
</td>
</tr>
<tr>
<td align="right">Brightness</td>
<td><input id="brightness" type="range" min="0" max="100" value="50" class="control-width"></td>
<td id="brightness-text"></td>
<td class="control-help">l + scrollwheel</td>
</tr>
<tr>
<td align="right">Outline strength</td>
<td><input id="outline-strength" type="range" min="0" max="100" value="50" class="control-width"></td>
<td id="outline-strength-text"></td>
<td class="control-help">q + scrollwheel</td>
</tr>
<tr>
<td align="right">Antialiasing</td>
<td><input type="checkbox" id="fxaa"></td>
</tr>
<tr>
<td align="right">Resolution</td>
<td>
<select id="resolution">
<option value="256">256x256</option>
<option value="512">512x512</option>
<option value="768" selected="selected">768x768</option>
<option value="1024">1024x1024</option>
<option value="1536">1536x1536</option>
<option value="2048">2048x2048</option>
</select>
</td>
</tr>
</table>
</div>
<div id="controls-share">
<button id="share-url-button">Click this</button>then share the url below.<br><br>
<textarea id="share-url" cols="48" rows="8"></textarea><br><br>
</div>
<div id="controls-help">
<p>
You'll want to use Google Chrome for now. Speck hasn't been significantly
tested against other browsers, yet.
</p>
</div>
<div id="controls-about">
<h2>Speck</h2>
High quality atomistic system rendering.<br><br>
Author: Rye Terrell | wwwtyro at gmail.com<br><br>
Github: <a href="https://github.com/wwwtyro/speck">https://github.com/wwwtyro/speck</a>
<h2>Copyright, license, etc.</h2>
<p>
Speck and the images it produces are completely public domain
and free to use. Do with it/them what you will. Attribution
is appreciated but not required.
</p>
</div>
</div>
</body>
</html>