-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
84 lines (69 loc) · 2.83 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
<!DOCTYPE html>
<html>
<head>
<title>Particle sandbox</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap" rel="stylesheet">
</head>
<body>
<header>
<pc id="header-p">Particle sandbox</pc>
</header>
<div class="main">
<canvas id="canvas" width="1920" height="1280"></canvas>
<div id="settings">
<div id="status-bar">
<p id="fps_p">Frame time:</p>
<p id="particles_p">Particles:</p>
</div>
<div class="setting">
<p>Map:</p>
<hr>
<label class="container">Box
<input type="radio" checked="checked" name="map-mode" value="0">
<span class="checkmark"></span>
</label>
<label class="container">Sphere
<input type="radio" name="map-mode" value="1">
<span class="checkmark"></span>
</label>
<label class="container">Borderless
<input type="radio" name="map-mode" value="2">
<span class="checkmark"></span>
</label>
</div>
<div class="setting">
<p>Gravity:</p>
<hr>
<label class="container">Bottom
<input type="radio" checked="checked" name="gravity-mode" value="0">
<span class="checkmark"></span>
</label>
<label class="container">Center
<input type="radio" name="gravity-mode" value="1">
<span class="checkmark"></span>
</label>
<label class="container">Mouse
<input type="radio" name="gravity-mode" value="2">
<span class="checkmark"></span>
</label>
</div>
<div class="setting">
<p>Gravity amount:</p>
<hr>
<input type="range" id="gravity-slider" name="gravity-amount" min="0" max="1000" value="500" class="slider"/>
</div>
<div class="setting">
<p id="max-particles-p">Max particles: 1500</p>
<hr>
<input type="range" id="max-slider" name="max-slider" min="3" max="3000" value="1500" step="3" class="slider"/>
</div>
<button class="button" type="button" onclick="reset()">RESET</button>
</div>
</div>
<script src="myscripts.js"></script>
</body>
</html>