-
Notifications
You must be signed in to change notification settings - Fork 0
/
tree.html
executable file
·56 lines (52 loc) · 1.48 KB
/
tree.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Tree</title>
<link rel="stylesheet" type="text/css" href="./css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="./css/slider.css">
</head>
<body>
<div class="row">
<div class="col">
<div class="row">
<h1>Tree</h1>
</div>
<div class="row">
<p>A tree that sways in the 'wind'. Remember when generating that the number of branches will be split^height</p>
</div>
<div class="row">
<p>TODO: real time scaling canvas size</p>
</div>
</div>
</div>
<div class="row">
<div id="inputs" class="col-md-2">
<div class="row">
<div id="gen_btn">
<button onclick="x.setup()">Generate</button>
</div>
</div>
<div class="row">
<p>Height(2-15):</p>
</div>
<div class="row bottom-pad">
<input type="range" id="height" value="7" min="1" max="15" width="500px"/>
</div>
<div class="row">
<p>Split (1-5):</p>
</div>
<div class="row bottom-pad">
<input type="range" id="split" value="3" min="1" max="5" width="500px"/>
</div>
<div class="row">
<input type="checkbox" id="leaves">Leaves?</input>
</div>
</div>
<div class="col-md-7">
<canvas id="tree"></canvas>
</div>
</div>
<script src="js/tree.js"></script>
</body>
</html>