Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
64 lines (64 loc) · 1.74 KB
/
Copy pathindex.html
File metadata and controls
64 lines (64 loc) · 1.74 KB
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
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<title></title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<style>
html, body{
background-color: black;
}
*{
image-rendering: crisp-edges;
mix-blend-mode: exclusion;
}
.main{
height:100vh;
width:100vw;
position:fixed;
top:0;
left:0;
}
</style>
</head>
<body onload="main()">
<header></header>
<nav></nav>
<main>
<canvas class="main" id="white"></canvas>
<canvas class="main" id="red"></canvas>
<canvas class="main" id="green"></canvas>
<canvas class="main" id="blue"></canvas>
</main>
<footer>
<script src="./things.js"></script>
<script>
//generate(document.getElementById('main'));
function main(){
let whiteGame = new GameOfLife('white', "white",2);
whiteGame.init();
setInterval(() => {
whiteGame.updateAndDrawGrid();
}, 100);
let redGame = new GameOfLife('red', "red");
redGame.init();
setInterval(() => {
redGame.updateAndDrawGrid();
}, 100);
let greenGame = new GameOfLife("green","green");
greenGame.init();
setInterval(() => {
greenGame.updateAndDrawGrid();
}, 100);
let blueGame = new GameOfLife('blue','blue');
blueGame.init();
setInterval(() => {
blueGame.updateAndDrawGrid();
}, 100);
}
</script>
</footer>
</body>
</html>