-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
69 lines (58 loc) · 2.08 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<link rel="shortcut icon" type="image/x-icon" href="./favicon.ico">
<title>Primordial Particle System</title>
<style>
* { padding: 0; margin: 0; }
canvas {
background: #fff;
display: block;
margin: 0 auto;
}
body {
background: #ffffff;
}
.configuration {
display: flex;
align-items: center;
justify-content: center;
column-gap: 1%;
}
</style>
</head>
<body>
<canvas id="canvas" width="1920" height="1080"></canvas>
<br>
<div class="configuration" id="configFields">
<label for="inputParticleNumber">Particle number:</label>
<input id="inputParticleNumber" size="5" onchange="updateConfiguration()"/>
<label for="inputSpeed">Particle speed:</label>
<input id="inputSpeed" size="4" onchange="updateConfiguration()"/>
<label for="inputTurningAngle">Turning angle (α):</label>
<input id="inputTurningAngle" size="3" onchange="updateConfiguration()"/>
<label for="inputNeighborAngle">Neighbor turning angle (β):</label>
<input id="inputNeighborAngle" size="3" onchange="updateConfiguration()"/>
<label for="inputNeighborhoodRadius">Neighborhood radius:</label>
<input id="inputNeighborhoodRadius" size="4" onchange="updateConfiguration()"/>
</div>
<br>
<div class="configuration" id="presets">
<h4 id="presetsTitle">Quick presets:</h4>
</div>
<br>
<script src="src/models/Model.js"></script>
<script src="src/models/Particle.js"></script>
<script src="./src/layers/Layer.js"></script>
<script src="src/layers/MainLayer.js"></script>
<script src="src/global/Configuration.js"></script>
<script src="src/global/Presets.js"></script>
<script src="src/global/Utils.js"></script>
<script src="./src/Res.js"></script>
<script src="./Main.js"></script>
</body>
</html>