-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
31 lines (30 loc) · 849 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Webpack App</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style>
* { margin:0; padding:0 }
html, body { width:100%; height:100% }
canvas { display:block; background-color: black; width: 100vw; height: 100vh}
</style>
</head>
<body>
<script type="text/javascript">
var demo = null
window.addEventListener('load', () => {
const canvas = document.createElement('canvas')
canvas.setAttribute('width', window.innerWidth)
canvas.setAttribute('height', window.innerHeight)
document.body.appendChild(canvas)
demo = new ParticleField(canvas, {
stateSize: 5,
trailLength: 500,
debug: true
})
demo.start()
})
</script>
</body>
</html>