-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
49 lines (46 loc) · 1.32 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>WebGL Laplace Solver</title>
</head>
<body>
<div id="controls" class="paper">
<h1>WebGL Laplace Solver</h1>
<label>
<input type="radio" name="method" value="gpu" checked> GPU
</label>
<label>
<input type="radio" name="method" value="cpu"> CPU
</label>
<div>
<label for="grid">Grid points:</label>
<input id="grid" type="number" value="128">
</div>
<div>
<label for="iter">Iterations:</label>
<input id="iter" type="number" value="1000">
</div>
<div>
<select id="colors">
<option value="rgb" selected>RGB</option>
<option value="red">Red</option>
<option value="rgrey">Red (Greyscale)</option>
<option value="green">Green</option>
<option value="ggrey">Green (Greyscale)</option>
<option value="blue">Blue</option>
<option value="bgrey">Blue (Greyscale)</option>
</select>
</div>
<div>
<input id="start" type="button" value="Run">
</div>
<div id="message"></div>
<hr>
<p>The GPU solution is slightly different than the CPU, because the
initialisation is also done on the GPU on a much finer grid.<p>
</div>
<canvas id="canvas"></canvas>
<script src="index.js"></script>
</body>
</html>