-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
325 lines (323 loc) · 10.4 KB
/
Copy pathindex.html
File metadata and controls
325 lines (323 loc) · 10.4 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
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta
http-equiv="Content-Security-Policy"
content="default-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'wasm-unsafe-eval'; worker-src 'self' blob:;"
/>
<link rel="icon" href="img/icon-144x144.png" />
<link rel="manifest" href="manifest.json" />
<meta name="theme-color" content="#3d5b88" />
<meta
name="description"
content="Explore infinite fractals in the Mandelbrot set. Discover beautiful downloadable images and share locations with friends—all with simple, fun controls."
/>
<meta property="og:url" content="https://fractious-deep.web.app/" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Fractious" />
<meta
property="og:description"
content="Explore infinite fractals in the Mandelbrot set. Discover beautiful downloadable images and share locations with friends—all with simple, fun controls."
/>
<meta
property="og:image"
content="https://fractious-deep.web.app/img/preview.jpg"
/>
<title>Fractious</title>
</head>
<body>
<header>
<div class="header-brand-row">
<h1>Fractious</h1>
<span class="version">v20260920b</span>
<div class="header-links">
<a href="https://rowan.fyi" aria-label="Website rowan.fyi"
><span aria-hidden="true">🌐</span> rowan.fyi</a
>
<a href="https://github.com/rowan-m/fractious"
><span aria-hidden="true">🧑💻</span>
<span class="link-text">Code</span></a
>
<a
href="https://bsky.app/profile/rowan.fyi"
aria-label="Bluesky profile rowan.fyi"
><span aria-hidden="true">🦋</span>
<span class="link-text">rowan.fyi</span></a
>
<a
href="https://mastodon.social/@rowan_m"
aria-label="Mastodon profile rowan_m@mastodon.social"
><span aria-hidden="true">🦣</span>
<span class="link-text">rowan_m@mastodon.social</span></a
>
</div>
</div>
<nav class="stats" aria-label="Statistics">
<form>
<label title="Real part / x"
><span aria-hidden="true">📍</span>x:<input
type="text"
name="centerx"
id="c_re"
aria-label="Real part / x"
/></label>
<label title="Imaginary part / y"
><span aria-hidden="true">📍</span>y:<input
type="text"
name="centery"
id="c_im"
aria-label="Imaginary part / y"
/></label>
<label title="Zoom"
><span aria-hidden="true">🔎</span
><input
type="number"
name="zoom"
step=".1"
id="zoom"
aria-label="Zoom"
/></label>
<label title="Rotation"
><span aria-hidden="true">🔄</span
><input
type="number"
name="rotation"
step="1"
id="rotation"
aria-label="Rotation"
/></label>
<label title="Hue"
><span aria-hidden="true">🎨</span
><input
type="number"
name="hue"
step=".01"
id="hue"
aria-label="Hue"
/></label>
<label title="Hue steps"
><span aria-hidden="true">🌈</span
><input
type="number"
name="huestep"
step=".005"
id="huestep"
aria-label="Hue steps"
/></label>
<label title="Iterations"
><span aria-hidden="true">⚙️</span
><input
type="number"
name="iterations"
readonly
id="iterations"
aria-label="Iterations"
/></label>
</form>
</nav>
</header>
<main>
<div class="render-area">
<canvas id="fractal-bg" aria-hidden="true"></canvas>
<canvas
height="512"
width="512"
draggable="false"
id="fractal"
role="img"
aria-label="Interactive Mandelbrot set rendering"
></canvas>
</div>
<div class="pin">
<span class="pinpoint" id="crosshair" aria-hidden="true">📍</span>
</div>
</main>
<footer>
<nav class="controls" aria-label="Controls">
<form>
<div>
<fieldset>
<button
type="button"
class="incdec"
name="incy"
title="Move up"
aria-label="Move up"
id="btn-up"
>
<span aria-hidden="true">🔼</span>
</button>
<span>
<button
type="button"
class="incdec"
name="decx"
title="Move left"
aria-label="Move left"
id="btn-left"
>
<span aria-hidden="true">◀️</span>
</button>
<span class="icon" aria-hidden="true">📍</span>
<button
type="button"
class="incdec"
name="incx"
title="Move right"
aria-label="Move right"
id="btn-right"
>
<span aria-hidden="true">▶️</span>
</button>
</span>
<button
type="button"
class="incdec"
name="decy"
title="Move down"
aria-label="Move down"
id="btn-down"
>
<span aria-hidden="true">🔽</span>
</button>
</fieldset>
<fieldset>
<button
type="button"
class="incdec"
name="inczoom"
title="Zoom in"
aria-label="Zoom in"
id="btn-zoom-in"
>
<span aria-hidden="true">🔼</span>
</button>
<span class="icon" aria-hidden="true">🔎</span>
<button
type="button"
class="incdec"
name="deczoom"
title="Zoom out"
aria-label="Zoom out"
id="btn-zoom-out"
>
<span aria-hidden="true">🔽</span>
</button>
</fieldset>
<fieldset>
<button
type="button"
class="incdec"
name="incrotate"
title="Rotate clockwise"
aria-label="Rotate clockwise"
id="btn-rotate-cw"
>
<span aria-hidden="true">🔼</span>
</button>
<span class="icon" aria-hidden="true">🔄</span>
<button
type="button"
class="incdec"
name="decrotate"
title="Rotate counter-clockwise"
aria-label="Rotate counter-clockwise"
id="btn-rotate-ccw"
>
<span aria-hidden="true">🔽</span>
</button>
</fieldset>
<fieldset>
<button
type="button"
class="incdec"
name="inchuestep"
title="Increase colour cycling"
aria-label="Increase colour cycling"
id="btn-cycle-in"
>
<span aria-hidden="true">🔼</span>
</button>
<span>
<button
type="button"
class="incdec"
name="dechue"
title="Shift colours"
aria-label="Shift colours left"
id="btn-hue-left"
>
<span aria-hidden="true">◀️</span>
</button>
<span class="icon" aria-hidden="true">🎨</span>
<button
type="button"
class="incdec"
name="inchue"
title="Shift colours"
aria-label="Shift colours right"
id="btn-hue-right"
>
<span aria-hidden="true">▶️</span>
</button>
</span>
<button
type="button"
class="incdec"
name="dechuestep"
title="Decrease colour cycling"
aria-label="Decrease colour cycling"
id="btn-cycle-out"
>
<span aria-hidden="true">🔽</span>
</button>
</fieldset>
</div>
<div>
<fieldset>
<button
type="button"
class="fullscreen"
title="Toggle fullscreen display"
aria-label="Toggle fullscreen display"
id="btn-fullscreen"
>
<span aria-hidden="true">⏫</span>
</button>
</fieldset>
<fieldset>
<button
type="button"
class="fullscreen"
title="Download screenshot"
aria-label="Download screenshot"
id="btn-screenshot"
>
<span aria-hidden="true">🖼️</span>
</button>
</fieldset>
<fieldset>
<button
type="button"
class="fullscreen"
title="Share"
aria-label="Share location and screenshot"
id="btn-share"
>
<span aria-hidden="true">⏏️</span>
</button>
</fieldset>
<fieldset>
<a href="." class="" title="Reset" aria-label="Reset"
><span aria-hidden="true">🔁</span></a
>
</fieldset>
</div>
</form>
</nav>
</footer>
<script type="module" src="src/main.js"></script>
</body>
</html>