-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
70 lines (63 loc) · 2.37 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
<!doctype html>
<link rel="stylesheet" type="text/css" href="styles/index.css">
<title>Sweet Mazes!</title>
<main>
<div id=controls>
<div class=group>
<h1>Generation</h1>
<section class=fields>
<label for=param-seed>Seed</label>
<input type=number id=param-seed>
<label for=param-grid>Grid type</label>
<select id=param-grid>
<option>Square</option>
<option>Hexagonal</option>
</select>
<label for=param-backtrack-method>Backtracking method</label>
<select id=param-backtrack-method>
<option>First</option>
<option>Last</option>
<option>Random</option>
</select>
<label for=param-width>Width</label>
<input type=number id=param-width>
<label for=param-height>Height</label>
<input type=number id=param-height>
<label for=param-bridge-chance>Bridge chance (0 - 1)</label>
<input type=number id=param-bridge-chance>
<label for=param-turn-probability>Turn chance (0 - 1)</label>
<input type=number id=param-turn-probability>
</section>
<button id=reseed>Reseed</button>
<button id=generate-now>Quickly Complete</button>
<button id=reseed-now>Reseed and Quickly Complete</button>
</div>
<div class=group>
<h1>Rendering</h1>
<section class=fields>
<label for=param-seed>Pixels per-cell</label>
<input type=number id=render-param-pixels-per-cell>
</section>
<button id=render>Render</button>
</div>
<div class=group>
<h1>Aesthetics</h1>
<section class=fields>
<label for=draw-param-show-solution>Show solution?</label>
<input type=checkbox id=draw-param-show-solution>
<label for=draw-param-wall-color>Wall colour</label>
<input type=color id=draw-param-wall-color>
<label for=draw-param-bridge-color>Bridge colour</label>
<input type=color id=draw-param-bridge-color>
<label for=draw-param-background-color>Path colour</label>
<input type=color id=draw-param-background-color>
<label for=draw-param-wonkiness>Wonkiness</label>
<input type=number id=draw-param-wonkiness>
</section>
</div>
</div>
<div id=view>
<canvas width=800 height=800 id=display></canvas>
</div>
</main>
<script type="module" src="scripts/index.js"></script>