-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
50 lines (50 loc) · 1.36 KB
/
Copy pathindex.html
File metadata and controls
50 lines (50 loc) · 1.36 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
<!DOCTYPE html>
<html>
<head>
<title>Triangle de Sierpinski</title>
<style>
body {
margin: 0;
}
.actions {
position: absolute;
bottom: 0;
}
label {
width: 130px;
display: inline-block;
}
input, select {
width: 100px;
}
</style>
</head>
<body style="overflow: hidden;">
<div class="actions">
<div>
<label>Colors:</label>
<select onchange="changeLevel(this)">
<option value="0">Low</option>
<option value="1">Medium</option>
<option value="2">Fancy</option>
<option value="3" selected>Extraordinary</option>
</select>
</div>
<div>
<label>Iterations number:</label>
<input type="number" id="iterationNumber" oninput="changeDepth(this)">
</div>
<div>
<label>Smooth:</label>
<input type="checkbox" oninput="changeSmooth(this)" checked="true">
</div>
<div>
<label>Colors:</label>
<input id="colorinput" type="range" min="0" max="360" oninput="changeColor(this)">
</div>
</div>
<canvas id="canvas"></canvas>
<script src="Sierpienski.js"></script>
<script src="index.js"></script>
</body>
</html>