-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
64 lines (64 loc) · 1.5 KB
/
Copy pathindex.html
File metadata and controls
64 lines (64 loc) · 1.5 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<script src="logo.js"></script>
<script src="lsys.js"></script>
<script src="main.js"></script>
<style>
body {
text-align: center;
}
#main-canvas {
border: 2px inset black;
float: right;
}
#modiv {
float: left;
}
div, canvas {
padding: 0.5em;
}
h3 {
margin-top: 0.3em;
}
.border-div {
margin: 0.2em;
border: 2px solid black;
}
.error {
color: red;
}
</style>
<title> L-System Demo </title>
</head>
<body>
<div id="modiv">
<div>
<h3> Grammar </h3>
<textarea id="grammar-txt" rows="10" cols="80"></textarea>
</div>
<div>
<h3> Draw rules </h3>
<textarea id="draw-txt" rows="10" cols="80"></textarea>
</div>
<div>
<h3> Axiom </h3>
<input id="axiom-txt" size="50"/>
</div>
<div id="controls-div" class="border-div">
<h3> Controls </h3>
<button id="parse-button">Parse</button>
<button id="iterate-button">Iterate</button>
<br/>
<br/>
<select id="preset-select"></select>
<button id="load-preset-btn">Load preset</button>
</div>
<div id="status-div" class="border-div">
<h3> Status </h3>
<div id="log-area"></div>
</div>
</div>
<canvas id="main-canvas"></canvas>
</body>
</html>