-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
150 lines (148 loc) · 3.7 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Spirochoids 3</title>
<style>
html, body {
height: 100%;
}
body {
margin: 0;
display: flex;
justify-content: center;
align-items: center;
background-color: #F0F0F0;
color: #f0f0f0;
font-family: Helvetica, Arial, sans-serif;
}
#three-canvas {
box-shadow: 0 0 100px #747474;
}
footer {
background-color: rgba(0, 0, 0, 0.4);
display: block;
position: absolute;
height: 6rem;
width: 100%;
bottom: 0;
padding: 1rem;
}
ul {
list-style: none;
}
li {
display: inline;
margin-left: 1rem;
margin-bottom: 1rem;
}
button {
color: #f0f0f0;
background-color: rgba(255, 255, 255, 0.05);
padding: 0.5rem 1rem;
border: 1px #999 solid;
border-radius: 10px;
font-size: 1rem;
cursor: pointer;
}
button:hover {
background-color: rgba(255, 255, 255, 0.25);
}
.sliders label {
margin-right: 1rem;
}
.radio-buttons input[type="radio"] {
/* display: none; */
position: absolute;
left: -9999px;
clip: rect(1px, 1px, 1px, 1px);
overflow: hidden;
}
.radio-buttons label {
display: inline-block;
background-color: rgba(255, 255, 255, 0.05);
padding: 0.5rem 1rem;
cursor: pointer;
text-align: center;
margin: 0;
border: 1px #999 solid;
border-right: none;
margin: -2px;
}
.radio-buttons label:last-child {
border-right: 1px #999 solid;
border-radius: 0 10px 10px 0;
}
.radio-buttons label:nth-child(2) {
border-radius: 10px 0 0 10px;
}
.radio-buttons input[type="radio"]:checked + label {
background-color: #1060ff;
font-weight: bold;
}
</style>
</head>
<body>
<script type="module" src="index.js"></script>
<footer>
<ul>
<li class="sliders">
<label for="canvasSize">Canvas Size</label>
<input
type="range"
name="canvasSize"
id="canvasSize"
min="0"
max="4"
step="0"
value="2"
/>
<output for="fraction" id="canvasSize-output">1:1</output>
</li>
<li class="sliders">
<label for="Pattern">Pattern</label>
<input
type="range"
name="pattern"
id="pattern"
min="0"
max="9"
step="1"
value="1"
/>
<output for="pattern" id="pattern-output">1</output>
</li>
<li class="sliders">
<label for="hue">Hue</label>
<input
type="range"
name="hue"
id="hue"
min="0"
max="360"
step="1"
value="0"
/>
<output for="hue" id="hue-output">0</output>
</li>
<li class="radio-buttons">
<input type="radio" name="light-dark" id="light" value="1"/>
<label for="light">Light</label>
<input
type="radio"
name="light-dark"
id="dark"
value="0"
checked
/>
<label for="dark">Dark</label>
</li>
<li class="button">
<button id="random">Random</button>
<button id="print">Print</button>
</li>
</ul>
</footer>
</body>
</html>