-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
74 lines (67 loc) · 1.86 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Langton Ant Art</title>
<link rel="stylesheet" href="./style.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<canvas
id="myCanvas"
willReadFrequently="true"
width="500"
height="500"
></canvas>
<div class="title">
<a href="https://en.wikipedia.org/wiki/Langton%27s_ant" target="_blank">Langton's ant</a>
a two-dimensional universal Turing machine with a very simple set of rules but complex emergent behavior.
</div>
<div class="settings">
<br>
<br>
<label for="rules">Rules:</label>
<select id="rules">
<option>LR</option>
<option>LRL</option>
<option>LRR</option>
<option>LLRR</option>
<option>LRLRR</option>
<option>RRLLRL</option>
<option>RLRLRLRL</option>
<option>LRRRRRLLR</option>
<option selected>RRLLLRLLLRRR</option>
<option>LLRRRLRLRLLR</option>
<option>LRRRLLRLLRRRRLRRLRLRLRLLRRLRR</option>
</select>
<br>
<label for="steps">Steps at once:</label>
<select id="steps">
<option>1</option>
<option>10</option>
<option>100</option>
<option>1000</option>
<option selected>10000</option>
<option>100000</option>
<option>1000000</option>
</select>
<br>
<label for="dimension">Dimension:</label>
<select id="dimension">
<option>200</option>
<option>500</option>
<option selected>1000</option>
<option>1500</option>
<option>2000</option>
<option>3000</option>
</select>
<br>
<label for="fade">Fade:</label>
<select id="fade">
<option selected>yes</option>
<option>no</option>
</select>
</div>
<script src="./closureCompliled.js"></script>
</body>
</html>