-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
38 lines (38 loc) · 1.03 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Boids simulation</title>
</head>
<body>
<h1 id="header">Boids simulation</h1>
<canvas id="canvas" width=900 height=750 style="background-color: skyblue;"></canvas>
</body>
<div>
Attraction strength
<input type="range" id="attr_slider">
<label id="attr_label" for="attr_slider"></label>
</div>
<div>
Repel strength
<input type="range" id="repel_slider">
<label id="repel_label" for="repel_slider"></label>
</div>
<div>
Alignment strength
<input type="range" id="align_slider">
<label id="align_label" for="align_slider"></label>
</div>
<div>
Sight range
<input type="range" id="sight_slider">
<label id="sight_label" for="sight_slider"></label>
</div>
<div>
N
<input type="range" id="n_slider">
<label id="n_label" for="n_slider"></label>
</div>
<script type="module" src="./main.js"></script>
</html>