-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
648 lines (647 loc) · 31.6 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
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
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="description" content="visualizer for the Mandelbrot set, prime numbers, and other mathematical sequences">
<meta name="keywords" content="Mandelbrot, Mandelbrot set, math, charts, graphs, interactive, prime numbers, trapped knight, javascript">
<meta name="robots" content="all">
<meta name="revisit-after" content="30 days">
<link rel="apple-touch-icon-precomposed" sizes="144×144" href="../icon-ipad-144x144.png">
<link rel="apple-touch-icon-precomposed" sizes="114×114" href="../icon-iphone-114x114.png">
<link rel="apple-touch-icon-precomposed" href="../icon-default-57x57.png">
<link rel="icon" type="image/png" href="../favicon-16x16.png" sizes="16x16">
<link rel="icon" type="image/png" href="../favicon-192x192.png" sizes="192x192">
<link rel="icon" type="image/png" href="../favicon-96x96.png" sizes="96x96">
<link rel="icon" type="image/png" href="../favicon-64x64.png" sizes="64x64">
<link rel="icon" type="image/png" href="../favicon-32x32.png" sizes="32x32">
<title>Very Plotter</title>
<style type="text/css">
body, html, div { border: 0; margin: 0; padding: 0; }
/* use overflow: hidden to stop scrolling on mobile devices, thanks;
to https://stackoverflow.com/a/28411556/259456 */
body, html { height: 100%; overflow: hidden; font-size:15px }
#fit-size-canvas { position:absolute; width: 100%; height: 100%; z-index:10; }
#dc { display:none; }
#menu, #help-menu, #controls-menu, #menu-open-wrap {
position:fixed;
width: 96%;
padding: 2%;
margin: 0;
z-index: 11;
color: #999999;
text-shadow: 0px 0px 5px #222;
font-family: arial;
font-size: 1.2rem;
}
#menu {
max-height: 80%;
padding-bottom: 20.0rem;
/* for small screens, take up the whole width, and
* for large screens, only get up to 40 chars wide
(thanks to https://stackoverflow.com/a/30515342/259456) */
max-width: 40.0rem;
width: 97%;
right: 0px;
}
#menu, #help-menu, #controls-menu {
background-color: rgba(0,0,0,0.8);
display: none;
overflow-y: auto;
}
#menu p, #help-menu p, #controls-menu p {
padding-bottom: 1rem;
margin-top: 0;
margin-bottom: 0.5rem;
}
button {
font-size: 1rem;
cursor: pointer;
z-index: 12;
}
#menu-close, #help-menu-close, #controls-menu-close, #menu-open-wrap div {
color: #aaa;
font-size: 1.75rem;
font-weight: 700;
margin-top: -.7rem;
cursor: pointer;
z-index: 12;
}
#menu-open-wrap>div>div {
margin-top: 0.35rem;
}
#menu-open-wrap>div>div:nth-child(1) {
margin-top: 0.05rem;
}
#help-menu {
padding-top: 2.6rem;
position: absolute;
padding-bottom: 20.0rem;
width: 100%;
left: 0px;
top: 0px;
height: 100%;
}
#help-menu, #controls-menu {
font-family: monospace;
padding-left: 2.0rem;
padding-bottom: 20.0rem;
max-height: 80%;
}
#controls-menu details>div div, #keyboard-keycaps div {
float: left;
margin-right: 4.0rem;
}
#controls-menu {
padding-top: 2.6rem;
position: absolute;
padding-bottom: 20.0rem;
/* for small screens, take up the whole width, and
* for large screens, only get up to 32 chars wide
(thanks to https://stackoverflow.com/a/30515342/259456) */
max-width: 32.0rem;
width: 92%;
left: 0px;
top: 0px;
height: 100%;
}
#controls-menu button {
padding: 0.4rem 1.5rem 0.4rem 1.5rem;
}
#controls-menu summary {
cursor: pointer;
padding-bottom: 0.8rem;
}
#controls-menu details>div {
padding: 0.5rem 0 1.5rem 0;
}
#controls-menu input {
text-align: right;
font-size: 1.2rem;
}
#controls-menu textarea {
width: 100%;
}
#controls-menu table {
padding-bottom: 0.5rem;
width: 100%;
}
#controls-menu td:nth-child(1) {
text-align: right;
width: 5.0rem;
}
#menu-contents {
}
.plot-desc {
padding-top: 0.7rem;
padding-left: 0.5rem;
padding-right: 0.5rem;
padding-bottom: 0.7rem;
/* cursor: pointer; */
font-size: 1.2rem;
border-top: 0.1rem solid rgba(200,200,200,0.3);
/* display: grid; */
}
.plot-desc button {
margin-right: 1.5rem;
margin-left: 0.5rem;
float: left;
padding: 0.25rem;
}
.plot-desc.active-plot {
background-color: rgba(50, 50, 50, 0.5);
border: 0.1rem solid rgba(200,200,200,0.6);
color: #ccc;
}
.fixed-top-right-btn {
position: fixed;
right: 2.0rem;
top: 2.0rem;
}
.fixed-top-left-btn {
position: fixed;
left: 2.0rem;
top: 2.0rem;
}
#footer {
position:fixed;
display: none;
width: 96%;
height: 2rem;
padding: 0.5rem;
bottom: 0px;
margin: 0;
z-index: 11;
color: #999999;
/* text-shadow: 0px 0px 5px #222; */
font-family: arial;
font-size: 0.9rem;
pointer-events: none; /* thanks to https://stackoverflow.com/a/3538639/259456 */
}
#footer button a {
text-decoration: none;
color: inherit;
}
kbd {
border: 2px solid #555;
border-radius: 0.25rem;
padding: 0.2rem;
width: 1.8rem;
display: inline-block;
height: 1.8rem;
text-align: center;
font-size: 1.3rem;
user-select: none;
cursor: pointer;
}
kbd.kbd-icon-only {
border: 2px solid rgba(0,0,0,0);
cursor: default;
}
.frosted-bg {
background-color: rgba(255, 255, 255, 0.6);
color: #6e6e6e;
text-shadow: none !important;;
}
.help-text {
padding-left: 2.0rem;
font-size: 1.0rem;
}
#gradient-canvas {
width: 100%;
height: 2.5rem;
}
#grad-add-color-char {
text-align: center !important;
}
#grad-add-color-color {
margin: 0 0.2rem 0 0.2rem;
}
#window-lock-icon {
display: none;
}
.wiggle {
background-color: rgba(255, 20, 30, 0.8);
animation: wiggle 0.5s;
animation-iteration-count: infinite;
}
@keyframes wiggle {
0% {transform: translate(-0.07rem, 0.00rem) rotate( 2deg) scale(1.0, 1.0);}
10% {transform: translate( 0.21rem, -0.21rem) rotate( 0deg) scale(1.1, 1.1);}
20% {transform: translate(-0.14rem, 0.07rem) rotate( 2deg) scale(1.3, 1.3);}
30% {transform: translate( 0.14rem, -0.07rem) rotate( 0deg) scale(0.7, 0.7);}
40% {transform: translate( 0.00rem, 0.14rem) rotate( 2deg) scale(0.7, 0.7);}
50% {transform: translate( 0.07rem, -0.14rem) rotate(-2deg);}
60% {transform: translate(-0.14rem, 0.00rem) rotate( 0deg);}
70% {transform: translate( 0.00rem, -0.14rem) rotate(-2deg);}
80% {transform: translate( 0.14rem, 0.14rem) rotate( 0deg);}
90% {transform: translate(-0.21rem, 0.21rem) rotate(-2deg);}
100% {transform: translate( 0.07rem, -0.07rem) rotate(-2deg);}
}
</style>
</head>
<body>
<canvas id="dc"></canvas>
<canvas id="fit-size-canvas"></canvas>
<div id="menu-open-wrap">
<div class="fixed-top-left-btn">
<div id="help-menu-open"><kbd class="frosted-bg" style="font-size: 1.75rem; font-weight: 700;">?</kbd></div>
<div id="controls-menu-open"><kbd class="frosted-bg" style="font-size: 1.75rem">
<svg
width="80%"
height="80%"
viewBox="0 0 12.7 12.7"
version="1.1"
id="svg5"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs2" />
<g
id="layer1">
<path
id="path42"
style="fill:#6e6e6e;fill-opacity:1;stroke:#5a5a5a;stroke-width:0.320145px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 9.5171963,0.49079552 c 0,0 -1.3927992,0.0233937 -2.144837,0.26838086 C 6.620322,1.0041637 5.5921828,1.7300922 5.4101282,2.6780777 5.228074,3.6260636 4.9467988,4.2025534 5.7253763,5.0864316 4.2178041,6.5940036 1.5270944,9.3138949 0.69113445,10.149855 c -0.61567466,0.791434 0.30186849,1.534951 0.31303745,1.543964 0,0 0.00172,0.0016 0.00178,0.0018 0.00891,0.01101 0.7524724,0.928758 1.5439646,0.313034 0.8359516,-0.836 3.5562851,-3.5262672 5.0638571,-5.0338394 0.8838752,0.7786327 1.4603648,0.4973575 2.4083504,0.3153031 0.947986,-0.1820544 1.673912,-1.2101939 1.9189,-1.9622309 C 12.186015,4.5758076 12.20941,3.1830091 12.20941,3.1830091 L 10.674285,4.7305068 8.7602469,5.2853958 8.0488385,4.6518048 7.4148054,3.9399543 7.969695,2.0259166 Z" />
</g>
</svg></kbd>
</div>
<div id="animate-playpause"><kbd class="frosted-bg" style="font-size: 1.75rem; font-weight: 700;">
<svg id="animate-playpause-play"
width="80%"
height="80%"
viewBox="0 0 12.7 12.7"
version="1.1"
id="svg5"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs2" />
<g
id="layer1">
<path
id="path905"
style="fill:#6e6e6e;fill-opacity:1;stroke:#5a5a5a;stroke-width:0.264999;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 2.38125,1.5875 v 9.525 L 10.31875,6.35 Z" />
</g>
</svg>
<svg id="animate-playpause-pause"
width="80%"
height="80%"
viewBox="0 0 12.7 12.7"
version="1.1" id="svg5" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs2" />
<g
id="layer1">
<path
id="path905"
style="fill:#6e6e6e;fill-opacity:1;stroke:#5a5a5a;stroke-width:0.319101;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 10.186458,1.0583331 H 7.8845832 V 11.641667 h 2.3018748 z m -5.3710415,0 H 2.5135415 V 11.641667 h 2.301875 z" />
</g>
</svg>
</kbd></div>
<div id="animate-restart"><kbd class="frosted-bg" style="font-size: 1.75rem; font-weight: 700;">
<svg id="animate-restart-rewind"
width="80%"
height="80%"
viewBox="0 0 12.7 12.7"
version="1.1" id="svg5" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs2" />
<g
id="layer1">
<g
id="g1177"
transform="matrix(1.1375,0,0,1.1375,-0.9392708,-0.873125)">
<path
id="path905"
style="fill:#6e6e6e;fill-opacity:1;stroke:#5a5a5a;stroke-width:0.176666;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 6.3500003,3.175 v 6.35 L 1.0583333,6.35 Z" />
<path
id="path1173"
style="fill:#6e6e6e;fill-opacity:1;stroke:#5a5a5a;stroke-width:0.176666;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 11.641667,3.175 v 6.35 L 6.35,6.35 Z" />
</g>
</g>
</svg>
<svg id="animate-restart-reset"
width="80%"
height="80%"
viewBox="0 0 12.7 12.7"
version="1.1" id="svg5" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs2" />
<g
id="layer1">
<path
id="path905"
style="fill:#6e6e6e;fill-opacity:1;stroke:#5a5a5a;stroke-width:0.354558;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 4.1660185,0.41408664 1.9414626,3.3402085 5.5835417,3.8362905 4.9171862,2.9528021 C 6.8698919,2.135966 8.9744105,3.0532897 9.7638797,4.9405767 10.553311,6.8278795 9.6633922,8.9978013 7.7761063,9.7872711 5.888804,10.576702 3.7188804,9.6867831 2.9294114,7.7994966 L 1.4648813,8.4121213 C 2.5926942,11.108246 5.6926093,12.379613 8.3887316,11.251799 11.084858,10.123987 12.356222,7.024074 11.22841,4.3279503 10.1006,1.6318257 7.0006846,0.36045782 4.30456,1.4882731 Z" />
</g>
</svg>
</kbd></div>
<div id="window-lock-icon" title="window lock is active"><kbd id="window-lock-icon-kbd" class="kbd-icon-only">
<svg
width="80%"
height="80%"
viewBox="0 0 12.7 12.7"
version="1.1" id="svg5" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs2" />
<g
id="layer1">
<path
id="path42"
style="fill:#6e6e6e;fill-opacity:1;stroke:#5a5a5a;stroke-width:1.21px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="M 25,2 C 10,2 5,15 5,20 V 45 H 45 V 20 C 45,15 39.999999,2 25,2 Z m 0,5 c 10,0 14,8 14,15 H 11 C 11,15 15,7 25,7 Z"
transform="scale(0.26458333)" />
</g>
</svg></kbd>
</div>
</div>
<div class="fixed-top-right-btn">
<span id="menu-open"><kbd class="frosted-bg">
<svg
style="position:relative; top:0.1rem;"
width="80%"
height="80%"
viewBox="0 0 12.7 12.7"
version="1.1" id="svg5" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs2" />
<g
id="layer1">
<path
id="path905"
style="fill:#6e6e6e;stroke:#5a5a5a;stroke-width:1.00157481;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;fill-opacity:1"
d="M 4 8 L 4 14 L 44 14 L 44 8 L 4 8 z M 4 21 L 4 27 L 44 27 L 44 21 L 4 21 z M 4 34 L 4 40 L 44 40 L 44 34 L 4 34 z "
transform="scale(0.26458333)" />
</g>
</svg></kbd>
</span>
</div>
</div>
<div id="menu">
<span style="position: fixed; right: 1.8rem; top: 1.2rem;" id="menu-close">×</span>
<p style="padding-right: 4rem;"c>Use a "View" button below to select a plot. Or, use the
buttons below or the number keys <kbd id="kbd-1">1</kbd> to <kbd id="kbd-6">6</kbd>
to view presets.
<div id="menu-contents"></div>
</div>
<div id="controls-menu">
<span style="position: fixed; left: 1.2rem; top: 1.2rem;" id="controls-menu-close">×</span>
<p>
<button id="btn-download">Save Image</button><br>
<small>Adjust image size under "window options" below.</small>
</p>
<p id="workers-warning"></p>
<details>
<summary>go to location by center and scale</summary>
<details class="help-text">
<summary>?</summary>
At scales above 3.0e13, perturbation theory math must be used, which is
slower than the floating point math that can be used at smaller scales.
</details>
<div>
<table>
<tr><td>center x:</td><td><textarea rows="4" size="22" id="go-to-c-x"></textarea></td></tr>
<tr><td>center y:</td><td><textarea rows="4" size="22" id="go-to-c-y"></textarea></td></tr>
<tr><td> </td></tr>
<tr><td>scale:</td><td><textarea rows="4" size="22" id="go-to-scale"></textarea></td></tr>
<tr><td colspan="2" style="font-size:0.9rem">scale is (pixels/unit) so bigger = more zoom</td></tr>
<tr><td>magnif-<br/>ication:</td><td><textarea rows="4" size="22" id="go-to-mag"></textarea></td></tr>
<tr><td colspan="2" style="font-size:0.9rem">magnification of 1 shows the entire plot. 2 shows the plot at 2x the size, 5e2 at 500x, etc.</td></tr>
</table>
<button id="go-to-c-go">Go</button>
<button id="go-to-c-reset">Reset to Current Window</button>
</div>
</details>
<details>
<summary>go to location by bounds</summary>
<details class="help-text">
<summary>?</summary>
The entered points will be fit into the screen. Depending on the window proportions,
additional area beyond the entered points may be displayed.
</details>
<div>
<table>
<tr><td>top left x:</td><td><textarea rows="4" id="go-to-tl-x"></textarea></td></tr>
<tr><td>top left y:</td><td><textarea rows="4" id="go-to-tl-y"></textarea></td></tr>
<tr><td> </td></tr>
<tr><td>bottom right x:</td><td><textarea rows="4" id="go-to-br-x"></textarea></td></tr>
<tr><td>bottom right y:</td><td><textarea rows="4" id="go-to-br-y"></textarea></td></tr>
</table>
<button id="go-to-b-go">Go</button>
<button id="go-to-b-reset">Reset to Current Window</button>
</div>
</details>
<details>
<summary id="n-iter-label1">iterations</summary>
<div>
<table>
<tr><td id="n-iter-label2">iterations:</td><td><input size="14" id="n-iter-n"/></td></tr>
</table>
<button id="n-iter-go">Go</button>
<button id="n-iter-reset">Reset to Current Value</button>
</div>
</details>
<details id="gradient-controls-details">
<summary>gradient editor</summary>
<details class="help-text">
<summary>?</summary>
Enter a series of colors to form a gradient with which to draw the plot.<br/><br/>
<b>Colors</b> are entered as a single letter:
<ul>
<li>r - red</li>
<li>o - orange</li>
<li>y - yellow</li>
<li>g - green</li>
<li>b - blue</li>
<li>v - violet/purple</li>
<li>p - violet/purple</li>
<li>w - white</li>
<li>B - Black</li>
</ul>
Colors may be defined or re-defined with an <b>option</b> like "o.f1593c" which defines a hex orange color for the letter o, or like "G~90.90.90" which defines an rgb gray color for the letter G.<br/>
<br/>
<b>Options</b>: after the series of color letters are given, zero or more gradient options may be entered.
Each option must be preceded with a dash "-".<br/>
<ul>
<li>mod# - where # is the modulo to take for the number of values of N (for Mandelbrot, iterations) for each pixel (for example, if a pixel has 10,123 iterations, and mod10000 is used, the pixel will be colored as if it had 123 iterations) (this is incompatible with the "width" option)</li>
<li>repeat# - where # is the number of times to repeat the color series</li>
<li>shift# - where # is the number of colors to shift off the end of the series and move onto the beginning</li>
<li>mirror# - like "repeat" but adds the reverse of the entire series from one repetition to the next</li>
<li>width# - where # is the percentage of width the gradient should be squeezed into (if not given, the gradient takes up 100% of the possible colors to draw) (this is incompatible with the "mod" option)</li>
<li>offset# - where # is the percentage to move the gradient if squeezed into a smaller width using the "width" option (for gradients with the mod option, offset is a number to add to the value of the pixel before taking the modulus)</li>
</ul>
Examples:<br/>
<br/>
"roygbv-mod1000" creates a rainbow gradient that repeats every 1000 values of N (for mod plots only, like Mandelbrot set)<br/>
<br/>
"roygbv-repeat2" creates a gradient with "roygbvroygbv"<br/>
<br/>
"pBpw-p~240.160.200" creates a gradient with "p" re-defined as pink<br/>
<br/>
"roygbv-mirror1" creates a gradient with "roygbvbgyor"<br/>
<br/>
"roygbv-width25-offset75" creates a rainbow gradient squeezed down to 25% of the available width, and moved all the way to the top end of the available width
</details>
<div>
<table>
<tr><td colspan="2" id="gradient-canvas-tr"><canvas id="gradient-canvas"></canvas></td></tr>
<tr><td colspan="2" id="gradient-error"></td></tr>
<tr><td>gradient:</td><td><textarea rows="4" id="grad-grad"></textarea></td></tr>
<tr><td>preset:</td><td><select style="font-size:1.2rem;" id="gradient-select"></select></td></tr>
<tr><td>add color:</td><td><input id="grad-add-color-char" size="1" maxlength="2" placeholder="A"/><input id="grad-add-color-color" type="color"/><button id="grad-add-color-go">Add</button></td></tr>
</table>
<button id="grad-go">Go</button>
<button id="grad-reset">Reset to Current Gradient</button>
</div>
</details>
<details id="smooth-slope-controls">
<summary>smooth and slope</summary>
<details class="help-text">
<summary>?</summary>
<span class="large-bailout-ui">The "large bailout" option increases the bailout value for the Mandelbrot set algorithm to use while calculating iterations for each pixel. When unchecked, the bailout value is the smallest possible bailout which allows faster computation for all locations. When enabled, the bailout value is much larger which allows a few more iterations to occur for each pixel. This is required for smooth coloring and slope shading. If you don't want to enable smooth coloring or slope shading (while exploring, for example), you can turn this off for faster rendering.<br/>
<br/></span>
The "smooth" option creates smooth transitions between colors, and is especially useful with the "slope shading" options. It requires the "large bailout" option.<br/>
<br/>
The "slope shading" option uses the final image to compute a local slope value for each pixel based on its neighboring pixels, and uses that information to add highlights and shadows. This creates a 3D shading effect similar to relief carving. Choose the location of the light source, and a depth value between 1 and 64.
</details>
<div>
<table>
<tr class="large-bailout-ui"><td>large bailout:</td><td><input id="grad-largebailout-cb" type="checkbox" /><small> (changing causes full re-render)</small></td></tr>
<tr><td>smooth:</td><td><input id="grad-showsmooth-cb" type="checkbox" /></td></tr>
<tr><td>slope shading:</td><td><select style="font-size:0.9rem;" id="grad-slope-select"></select> <small>(smooth recommended)</small></td></tr>
<tr><td>slope depth:</td><td><input size="4" id="grad-slope-depth"/> <small>1-64</small></td></tr>
</table>
<button id="smooth-slope-go">Go</button>
<button id="smooth-slope-reset">Reset</button>
</div>
</details>
<details id="workers-controls">
<summary>workers options</summary>
<label for="workers-select">workers </label>
<select style="font-size:1.2rem;" id="workers-select"></select>
<details class="help-text">
<summary>?</summary>
Increase workers to increase computation speed, depending on your computer/device.<br/><br/>
Increasing the number of workers will cause your computer/device to consume more power/battery, but the computation will be completed faster.<br/><br/>
Increasing the number of workers beyond a certain point will have no effect depending on the number of cores/threads your computer or browser can devote to this page.<br/><br/>
Very Plotter uses one thread for the user interface and one for worker management. Therefore if you want maximum performance, I recommend running one or two fewer workers than your computer core/thread count. For example, if your computer has 8 high-performance cores/threads, I recommend using 6 or 7 workers. If your computer has 4 high-performance cores and 4 efficiency cores, I recommend using 4 workers. But of course, your results may vary depending on many factors.
</details>
</details>
<details>
<summary>window options</summary>
<details class="help-text">
<summary>?</summary>
Turn on window lock if you are running a long render. It will prevent the render from restarting if the browser asks the window to resize itself (which can happen when switching browser tabs, or turning off your monitor). Window lock will also disable the keyboard and mouse controls (again, to avoid interfering with a long-running render). Otherwise, it's probably best left off.<br/>
<br/>
With photo editing software, you can resize the full size render down for a smaller, smoother-looking image.
</details>
<div>
<table>
<tr><td>window lock:</td><td><input id="window-lock-cb" type="checkbox" /></td></tr>
<tr><td>render size:</td><td><select style="font-size:0.9rem;" id="full-size-select"></select></td></tr>
<tr><td colspan="2">Smaller images are fast, and good for exploring. Larger images have much more detail but take a lot more time to render. Use the "Save Image" button to download the full-size render.</td></tr>
</table>
</div>
</details>
<details id="algo-controls">
<summary>algorithm options</summary>
<details class="help-text">
<summary>?</summary>
The "auto" option picks the algorithm depending on the scale. Users that are familiar with Mandelbrot set calculation algorithms may be able to select a better-performing algorithm at specific locations.<br/>
<br/>
The "stripes" options use an alternate coloring algorithm. Stripes coloring is
currently implemented for the basic and perturbation theory algorithms, but not for
series approximation and arbitrary-precision numbers used for the super-deep zooms
(beyond scales of 1e100). For those deep locations, regular iteration count coloring
will work far better.<br/>
<br/>
When using "stripes" coloring, you'll likely want to use a "-mod#" option with your
gradient with a much higher modulus number than you'd use for regular iteration
coloring. For example, if you would use "-mod500" with iteration coloring, try
starting with "-mod50000" for stripes coloring.
</details>
<div>
<table>
<tr><td>algorithm:</td><td><input size="22" id="algo-algo" style="text-align:left"/></td></tr>
<tr><td>options:</td><td><select style="font-size:0.9rem;" id="algo-select"></select></td></tr>
</table>
<button id="algo-go">Go</button>
<button id="algo-reset">Reset to Current Algorithm</button>
</div>
</details>
<details id="chunk-ordering-controls">
<summary>chunk ordering</summary>
<details class="help-text">
<summary>?</summary>
By default, vertical stripes of pixels (chunks) are drawn in random order. This helps provide a sense of the overall image earlier than if the chunks were drawn left-to-right. While exploring very slow locations, enabling "center first" order may allow you to decide more quickly whether to continue zooming in.
</details>
<div>
<table>
<tr><td>chunk order:</td><td><select style="font-size:0.9rem;" id="chunk-order-select"></select></td></tr>
</table>
</div>
</details>
<details id="animation-controls">
<summary>animation options</summary>
<div>
<table>
<tr><td>loop:</td><td><input id="animate-loop-cb" type="checkbox" /></td></tr>
<tr><td>step interval:</td><td><select style="font-size:0.9rem;" id="animate-interval-select"></select></td></tr>
</table>
</div>
</details>
</div>
<div id="help-menu">
<span style="position: fixed; left: 1.2rem; top: 1.2rem;" id="help-menu-close">×</span>
<p style="clear: both; margin-left: -1.0rem; padding-top: 1.0rem">tips for the Mandelbrot set plot (<a target="_blank" href="https://philthompson.me/very-plotter-tips.html">more tips</a>)</p>
<p>screen black? increase iterations with M key or settings menu</p>
<p>too slow? add a few workers with U key or settings menu</p>
<p style="clear: both; margin-left: -1.0rem">mouse</p>
<p>drag mouse to move — scroll mouse wheel to zoom</p>
<p>hold alt (option on Mac) and drag mouse to zoom</p>
<p>hold shift and click to re-center (good for slow-to-draw plots)</p>
<p style="clear: both; margin-left: -1.0rem">keyboard (or click/tap key icons below)</p>
<div id="keyboard-keycaps">
<div>help<br/> <kbd id="kbd-H">H</kbd></div>
<div>plots<br/> <kbd id="kbd-P">P</kbd></div>
<div>controls<br/> <kbd id="kbd-O">O</kbd></div>
<div>presets<br/> <kbd id="kbd-1">1</kbd> - <kbd id="kbd-5">5</kbd></div>
<div>center at (0,0)<br/> <kbd id="kbd-C">C</kbd></div>
<p style="clear: both"></p>
<div>move<br/> <kbd id="kbd-W">W</kbd><br/><kbd id="kbd-A">A</kbd><kbd id="kbd-S">S</kbd><kbd id="kbd-D">D</kbd></div>
<div>move less<br/> <kbd id="kbd-ArrowUp">↑</kbd><br/> <kbd id="kbd-ArrowLeft">←</kbd><kbd id="kbd-ArrowDown">↓</kbd><kbd id="kbd-ArrowRight">→</kbd></div>
<div>zoom<br/><kbd id="kbd-Q">Q</kbd> <kbd id="kbd-E">E</kbd></div>
<div>zoom less<br/> <kbd id="kbd-−">−</kbd> <kbd id="kbd-+">+</kbd></div>
<p style="clear: both"></p>
<div>line width<br/> <kbd id="kbd-Z">Z</kbd></div>
<div>fewer/more points<br/> <kbd id="kbd-N">N</kbd> <kbd id="kbd-M">M</kbd></div>
<p style="clear: both"></p>
<div>change plot<br/> <kbd id="kbd-X">X</kbd></div>
<div>line color<br/> <kbd id="kbd-V">V</kbd></div>
<div>bg color<br/> <kbd id="kbd-B">B</kbd></div>
<p style="clear: both"></p>
<div>show mouse pos<br/> <kbd id="kbd-R">R</kbd></div>
<div>show params<br/> <kbd id="kbd-T">T</kbd></div>
<p style="clear: both"></p>
<div>fewer/more workers<br/> <kbd id="kbd-Y">Y</kbd> <kbd id="kbd-U">U</kbd></div>
<div>stop<br/> <kbd id="kbd-Escape">Esc</kbd></div>
</div>
</div>
<div id="footer">
<span style="float:left; pointer-events: visible; background-color: rgb(120, 120, 120); padding:0.35rem"><a id="blog-link" target="_blank" href="https://philthompson.me/2021/Very-Plotter.html">What is this?</a><a id="blog-link-mandel" target="_blank" href="https://philthompson.me/2021/The-Mandelbrot-set-on-Very-Plotter.html">What is this?</a> <a target="_blank" href="https://github.com/philthompson/visualize-primes/releases">Release Notes</a> <small style="color:#BBB">(v0.10.0) </small></span>
<button id="tip-btn" style="float:right; pointer-events: visible"><a target="_blank" href="https://philthompson.me/tip-jar/">Tip Jar<a/></button>
</div>
<script src="infnum.js?v=0.10.0"></script>
<script src="floatexp.js?v=0.10.0"></script>
<script src="mathiface.js?v=0.10.0"></script>
<script src="plots.js?v=0.10.0"></script>
<script src="paint.js?v=0.10.0"></script>
</body>
</html>