-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
116 lines (101 loc) · 3.78 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="dist/bundle.js" type="module"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css">
<title>3D LSystem Viewer</title>
<style>
body {
background-color: #1B1B1B;
margin: 0;
}
#renderer {
width: fit-content;
}
.is-flex {
display: flex;
flex-direction: column;
align-items: center;
}
.label {
color: rgb(203, 203, 203);
}
</style>
</head>
<body>
<div class="columns is-gapless">
<div id="renderer" class="column is-four-fifths"></div>
<div id="controls" class="column is-flex is-spaced">
<div class="field">
<label class="label">L-System:</label>
<div class="control">
<div class="select">
<select id="lsystem-select"></select>
</div>
</div>
</div>
<table id="alphabet-table" class="table is-fullwidth is-rounded">
<thead>
<tr>
<th>Symbol</th>
<th>Rule</th>
<th></th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<button id="add-row-btn" class="button mb-5">Add Row</button>
<div class="field">
<label class="label">Axiom:</label>
<div class="control">
<input type="text" id="axiom-input" class="input is-small is-rounded" placeholder="Axiom">
</div>
</div>
<div class="field">
<label class="label">Angle:</label>
<div class="control">
<input type="number" id="angle-input" class="input is-small is-rounded" placeholder="Angle">
</div>
</div>
<div class="field">
<label class="label">Iterations:</label>
<div class="control">
<input type="number" id="iterations-input" class="input is-small is-rounded"
placeholder="Iterations">
</div>
</div>
<div class="field">
<label class="label">Segment Length:</label>
<div class="control">
<input type="number" id="segment-length-input" class="input is-small is-rounded"
placeholder="Segment Length">
</div>
</div>
<div class="field">
<label class="label">Start Radius:</label>
<div class="control">
<input type="number" id="start-radius-input" class="input is-small is-rounded"
placeholder="Start Radius">
</div>
</div>
<div class="field">
<div class="control">
<button id="render-btn" class="button mb-5">Render</button>
</div>
</div>
<div class="field">
<div class="control is-flex">
<button id="save-system-btn" class="button">Save System</button>
<input id="import-file" hidden type="file">
<button id="import-system-btn" class="button">Import System</button>
<button id="download-btn" class="button">Download Scene</button>
</div>
</div>
</div>
</div>
</body>
</html>