-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmandelbrot.html
More file actions
81 lines (71 loc) · 2.6 KB
/
Copy pathmandelbrot.html
File metadata and controls
81 lines (71 loc) · 2.6 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
name="description"
content="Explore the Mandelbrot Set fractal interactively in your browser."
/>
<title>Mandelbrot Set – Fun With Math</title>
<link rel="stylesheet" href="../../css/style.css" />
<link rel="stylesheet" href="../../css/experiments-basic-mandelbrot.css" />
</head>
<body>
<nav>
<a class="brand" href="../../index.html">∑ Fun With Math</a>
<a href="../../index.html">← All Experiments</a>
</nav>
<div class="page-header">
<h1>Mandelbrot Set</h1>
<p>An interactive fractal explorer. Scroll to zoom, drag to pan.</p>
</div>
<div class="experiment-layout">
<div>
<div class="canvas-wrapper" id="canvasWrap">
<canvas id="canvas"></canvas>
</div>
<div id="progress"></div>
<p id="coords"> </p>
</div>
<aside class="controls">
<h3>Controls</h3>
<label>
Max Iterations: <span id="iterLabel">200</span>
<input type="range" id="iterRange" min="50" max="2000" step="50" value="200" />
</label>
<label>
Color Scheme
<select id="colorScheme">
<option value="classic">Classic Blue</option>
<option value="fire">Fire</option>
<option value="greyscale">Greyscale</option>
<option value="rainbow">Rainbow</option>
</select>
</label>
<div style="display: flex; gap: 0.5rem; flex-wrap: wrap">
<button class="btn btn-primary" id="renderBtn">Render</button>
<button class="btn btn-secondary" id="resetBtn">Reset View</button>
</div>
<div class="info-box">
<h4>About</h4>
The Mandelbrot set contains every complex number <code>c</code> for which the sequence
<code>z₀=0, zₙ₊₁=zₙ²+c</code> stays bounded. Points inside are coloured black; outside
points are coloured by escape speed.
</div>
<div class="info-box">
<h4>Navigation</h4>
<ul style="padding-left: 1rem; line-height: 2">
<li><b>Scroll</b> – zoom in / out</li>
<li><b>Drag</b> – pan around</li>
<li><b>Double-click</b> – zoom to point</li>
</ul>
</div>
</aside>
</div>
<footer>
<p><a href="../../index.html">← Back to all experiments</a></p>
</footer>
<script src="../../js/experiments-basic-mandelbrot.js"></script>
</body>
</html>