-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
79 lines (75 loc) · 4.01 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
75
76
77
78
79
<!--
Author: github.com/overstruck
Use this application live at: https://overstruck.github.io/Langtons_Ant_RELOADED_Cell_Automaton/"
-->
<!DOCTYPE html>
<meta charset="UTF-8">
<html>
<head>
<title>Langton's Ant Lab RELOADED</title>
<link rel="stylesheet" href="style.css">
</head>
<body id="app">
<div id="interface">
<div id="interfaceContainer">
<div class="controls">
<label for="antNum">Ant Number </label>
<input id="antNum" name="antNum" type="text" maxlength="2" size="4" placeholder="15 (Hex)">
<input id="btnSetAntNum" type="button" value="Set Number">
</div>
<div class="controls">
<label for="frameRate">Frame Rate </label>
<input id="frameRate" name="frameRate" type="text" maxlength="4" size="4" placeholder="1" min="1" step="1" onkeyup="if(this.value<1){this.value= this.value * -1}">
<input id="btnSetFPS" type="button" value="Set FPS">
</div>
<div class="controls">
<label for="cellSize">Cell Size </label>
<input id="cellSizeInput" name="cellSize" type="text" maxlength="2" size="4" placeholder="15 (pixels)" min="1" step="1" onkeyup="if(this.value<0){this.value= this.value * -1}">
<input id="btnSetCellSize" type="button" value="Set Cell Size">
</div>
<div class="controls">
<label for="gridSize">Grid Size </label>
<input id="gridSizeInputW" name="gridSize" type="text" maxlength="4" size="4" placeholder="Width:41" onkeyup="if(this.value<0){this.value= this.value * -1}">
<input id="gridSizeInputH" name="gridSize" type="text" maxlength="4" size="4" placeholder="Height:41" onkeyup="if(this.value<0){this.value= this.value * -1}">
<input id="btnSetGridSize" type="button" value="Set Grid Size">
</div>
<div class="controls">
<label for="theme">Theme:</label>
<select name="theme" id="theme">
<option value="0">Default</option>
<option value="1">Dark</option>
<option value="2">Green</option>
<option value="3">Neon</option>
<option value="4">Soft Beach</option>
<option value="5">Puple</option>
<option value="6">Dual</option>
</select>
<div id="themeContainer">
<div class="themeColor"></div>
<div class="themeColor"></div>
<div class="themeColor"></div>
<div class="themeColor"></div>
<div class="themeColor"></div>
</div>
</div>
<div class="controls">
<span>Other:</span>
<label for="debug">Debug</label>
<input type="checkbox" name="debug" id="debug">
<label for="logAll">Log All</label>
<input type="checkbox" name="logAll" id="logAll">
</div>
<div class="controls buttons">
<input id="btnToggle" type="button" value="Start">
<input id="btnClear" type="button" value="Clear Console">
<input id="btnReset" type="button" value="Reset">
<input id="btnSavePic" type="button" value="Save Picture">
</div>
<div id="console"></div>
<div id="counter"></div>
</div>
</div>
<script src="p5.min.js"></script>
<script src="main.js"></script>
</body>
</html>