-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
105 lines (97 loc) · 4.01 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
<!DOCTYPE html>
<html>
<head>
<title>Particle Simulator</title>
<script type="module" src="./index.js"></script>
<link rel="stylesheet" type="text/css" href="./index.css">
</head>
<body>
<div id="shell">
<span id="info">
<span>Hold<kbd>space</kbd>for 4x simulation speed</span>
<span>Press<kbd>s</kbd>to toggle sidebar</span>
</span>
<span id="fps">FPS</span>
<div id="content">
<canvas id="canvas" width="2000" height="1250">
</canvas>
</div>
<button id="toggleSidebar">Toggle Sidebar</button>
<div id="sidebar">
<section id="top-section">
<h1>Particle Simulator</h1>
<sub>A WebGL implementation of <a href="https://github.com/tom-mohr/particle-life-app">Tom Mohrs
Particle
Life</a> by <a href="https://github.com/h16nning">h16nning</a></sub>
<h2>Controls</h2>
<div class="row">
<button id="play_pause">Play</button>
<button id="archiveConfig">Archive</button>
<button id="reload">Reload</button>
</div>
<div class="row">
<label for="select_archivedConfig">Select Archived</label>
<select id="select_archivedConfig">
<option disabled selected value> -- select an option -- </option>
</select>
</div>
<!--simulation speed-->
<div class="row">
<label for="input_simulationSpeed">Simulation Speed<kbd>z</kbd></label>
<input type="number" id="input_simulationSpeed">
</div>
<!--n-->
<div class="row">
<label for="input_n">Particle Count<kbd>n</kbd></label>
<input type="number" id="input_n">
</div>
<!--size-->
<div class="row">
<label for="input_pointSize">Particle Size<kbd>p</kbd></label>
<input type="number" id="input_pointSize">
</div>
<!--rMax-->
<div class="row">
<label for="input_rMax">Max Radius<kbd>r</kbd></label>
<input type="number" id="input_rMax">
</div>
<!--beta-->
<div class="row">
<label for="input_beta">Beta<kbd>b</kbd></label>
<input type="number" id="input_beta">
</div>
<!--forceFactor-->
<div class="row">
<label for="input_forceFactor">Force Factor<kbd>f</kbd></label>
<input type="number" id="input_forceFactor">
</div>
<!--friction-->
<div class="row">
<label for="input_friction">Friction<kbd>q</kbd></label>
<input type="number" id="input_friction">
</div>
<!--friction-->
<div class="row">
<label for="input_colorDistribution">Color distribution<kbd>d</kbd></label>
<input type="number" id="input_colorDistribution">
</div>
<div class="row">
<label for="input_matrixSize">Matrix Size<kbd>m</kbd></label>
<input type="number" id="input_matrixSize">
</div>
<div id="log-wrapper">
<div id="log"></div>
</div>
<div id="colorCountDisplay">
<h2>Color Count</h2>
</div>
<div class="row">
<button id="randomizeMatrix">Randomize</button>
<button id="">(placeholder)</button>
</div>
<div id="matrixDisplay"></div>
</section>
</div>
</div>
</body>
</html>