-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
55 lines (52 loc) · 1.33 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
<html>
<head>
<title>Art Generator</title>
<script src="index.js"></script>
<style>
body {
font-family: sans-serif;
}
canvas {
border: 1px solid gray;
}
button {
margin-top: 10px;
}
.fields > .option:not(:last-child) {
margin-bottom: 10px;
}
</style>
</head>
<body>
<div style="text-align: center">
<h1>Branching Line Generator</h1>
<canvas id="root"></canvas>
<div>
<button type="button" onclick="start()">Start</button>
<button type="button" onclick="stop()">Stop</button>
<button type="button" onclick="reset()">Reset</button>
</div>
<div class="fields">
<h3>Options</h3>
<div class="option">
<label>
# of agents
</label>
<input type="number" id="number-of-agents" value="5" />
</div>
<div class="option">
<label>
Branch probability
</label>
<input type="number" id="branch-probability" value=".01" step=".001" />
</div>
<div class="option">
<label>
Angle change probability
</label>
<input type="number" id="angle-change-probability" value=".1" step=".01" />
</div>
</div>
</div>
</body>
</html>