-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
30 lines (27 loc) · 838 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Conways Game of Life</title>
<meta name="author" content="Matthias Barde">
</head>
<body>
<canvas id="myCanvas" width="600" height="600"
style="border: 1px solid black; cursor: pointer;">
Your browser does not support the canvas element.
</canvas>
<br/>
<button id="btn-play">play</button>
<label>interval:</label>
<input id="interval" type="number" value="100"/>
<button id="btn-spawn">spawn glider</button>
<hr/>
<label>life probability:</label>
<input id="probability" type="number" value="10" min="0" max="100"/>
<label>grid size:</label>
<input id="size" type="number" value="64"/>
<button id="btn-repopulate">repopulate</button>
<script src="grid.js"></script>
<script src="main.js"></script>
</body>
</html>