-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
52 lines (45 loc) · 1009 Bytes
/
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Particles</title>
<style>
body {
background-color: #111;
color: #FFF;
font-family: Arial, Helvetica, sans-serif;
}
canvas {
transform: scale(1.2);
margin: 30px;
cursor: crosshair;
}
.container {
width: 100%;
max-width: 512px;
margin: 0 auto;
}
#fps {
float: right;
}
#ui {
margin: 50px 0 10px 0;
}
</style>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div class="container">
<h1>Particles</h1>
<canvas id="c" width='512' height='512'></canvas>
<div id="ui">
<span id="fps">0 fps</span> Particle count <input id='count' value=200000 type="number">
<button onclick="settings()">Apply</button>
</div>
<div>
<a href="https://github.com/sniok/particles">GitHub</a>
</div>
</div>
<script src='./particles.js'></script>
</body>
</html>