-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmandelbrotExploring.html
More file actions
344 lines (318 loc) · 14.8 KB
/
mandelbrotExploring.html
File metadata and controls
344 lines (318 loc) · 14.8 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
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Fractal generator | Mandelbrot set Explorer</title>
<!-- Google Font: Source Sans Pro -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
<!-- Font Awesome -->
<link rel="stylesheet" href="plugins/fontawesome-free/css/all.min.css">
<!-- Theme style -->
<link rel="stylesheet" href="dist/css/adminlte.min.css">
<link rel="stylesheet" href="dist/css/style.css">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<script type="text/x-mathjax-config">
MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}});
</script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjs/3.13.1/math.min.js"></script>
</head>
<body class="hold-transition sidebar-mini layout-fixed">
<div class="wrapper">
<!-- Preloader -->
<div class="preloader flex-column justify-content-center align-items-center">
<img class="animation__shake" src="dist/img/sci-lg-eng-grey.png" alt="muni-sci-logo" height="60" width="60">
</div>
<!-- Navbar -->
<nav class="main-header navbar navbar-expand navbar-white navbar-light">
<!-- Left navbar links -->
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars"></i></a>
</li>
</ul>
<!-- Right navbar links -->
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" data-widget="fullscreen" href="#" role="button">
<i class="fas fa-expand-arrows-alt"></i>
</a>
</li>
</ul>
</nav>
<!-- /.navbar -->
<!-- Main Sidebar Container -->
<aside class="main-sidebar sidebar-dark-primary elevation-4">
<!-- Brand Logo -->
<a href="index.html" class="brand-link text-center elevation-2">
<img src="dist/img/sci-lg-eng-white.png" alt="Logo SCI MUNI" class="brand-image" style = "opacity: 0.8;">
<span class="brand-text font-weight-light">Fractal generator</span>
</a>
<!-- Sidebar -->
<div class="sidebar">
<!-- Sidebar Menu -->
<nav class="mt-2">
<ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
<!-- Add icons to the links using the .nav-icon class
with font-awesome or any other icon font library -->
<li class="nav-item">
<a href="./bubbles.html" class="nav-link" style = "padding-left: 10px">
<i class="nav-icon"><img src="dist/img/bubbles1.png" alt="" width="40px"></i>
<p>Hyperbolic Components </p>
</a>
</li>
<li class="nav-item menu-close">
<a href="#" class="nav-link" style = "padding-left: 10px">
<i class="nav-icon"><img src="dist/img/coloring.png" alt="" width="40px"></i>
<p>
Coloring Methods
<i class="right fas fa-angle-left" style = "margin-top: 10px;"></i>
</p>
</a>
<ul class="nav nav-treeview">
<li class="nav-item">
<a href="./coloringMethodsJulia.html" class="nav-link">
<i class="far fa-circle nav-icon"></i>
<p>Julia set</p>
</a>
</li>
<li class="nav-item">
<a href="./coloringMethodsMandelbrot.html" class="nav-link">
<i class="far fa-circle nav-icon"></i>
<p>Mandelbrot set</p>
</a>
</li>
</ul>
</li>
<li class="nav-item menu-close">
<a href="#" class="nav-link" style = "padding-left: 10px">
<i class="nav-icon"><img src="dist/img/algs.png" alt="" width="40px"></i>
<p>
Rendering Algorithms
<i class="right fas fa-angle-left" style = "margin-top: 10px;"></i>
</p>
</a>
<ul class="nav nav-treeview">
<li class="nav-item">
<a href="./renderingAlgorithmsJulia.html" class="nav-link">
<i class="far fa-circle nav-icon"></i>
<p>Julia set</p>
</a>
</li>
<li class="nav-item">
<a href="./renderingAlgorithmsMandelbrot.html" class="nav-link">
<i class="far fa-circle nav-icon"></i>
<p>Mandelbrot set</p>
</a>
</li>
</ul>
</li>
<li class="nav-item">
<a href="./mandelbrotExploring.html" class="nav-link active" style = "padding-left: 10px">
<i class="nav-icon"><img src="dist/img/explorer1.png" alt="" width="40px"></i>
<p>
Mandelbrot set Explorer
</p>
</a>
</li>
<li class="nav-item">
<a href="./mandelbrotGeneralized.html" class="nav-link" style = "padding-left: 10px">
<i class="nav-icon"><img src="dist/img/mGen.png" alt="" width="40px"></i>
<p>Generalized Mandelbrot set</p>
</a>
</li>
<li class="nav-item">
<a href="./juliaGeneralized.html" class="nav-link" style = "padding-left: 10px">
<i class="nav-icon"><img src="dist/img/js.png" alt="" width="40px"></i>
<p>Generalized Julia set</p>
</a>
</li>
<li class="nav-item">
<a href="./buddhabrot.html" class="nav-link" style = "padding-left: 10px">
<i class="nav-icon"><img src="dist/img/buddha.png" alt="" width="40px"></i>
<p>Buddhabrot</p>
</a>
</li>
</ul>
</nav>
<!-- /.sidebar-menu -->
</div>
<!-- /.sidebar -->
</aside>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper px-5" style = "max-width: 1100px;">
<!-- Content Header (Page header) -->
<div class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1 class="m-0">Mandelbrot set Explorer</h1>
</div><!-- /.col -->
<div class="col-sm-6">
<ol class="breadcrumb float-sm-right">
<li class="breadcrumb-item"><a href="index.html">Home</a></li>
<li class="breadcrumb-item active">Mandelbrot set Explorer</li>
</ol>
</div><!-- /.col -->
</div><!-- /.row -->
</div><!-- /.container-fluid -->
</div>
<!-- /.content-header -->
<!-- Main content -->
<section class="content">
<div class="container-fluid interactive">
<!-- Small boxes (Stat box) -->
<!-- /.row -->
<!-- Main row -->
<div class="row">
<!-- /.Left col -->
<!-- right col (We are only adding the ID to make the widgets sortable)-->
<section class="col-lg-12">
<div class="card card-primary collapsed-card">
<div class="card-header">
<h3 class="card-title">Mandelbrot set Explorer</h3>
<div class="card-tools">
<button type="button" class="btn btn-tool" data-card-widget="collapse"><i class="fas fa-plus"></i>
</button>
</div>
<!-- /.card-tools -->
</div>
<!-- /.card-header -->
<div class = "card-body" id="methodContainer">
<p>
<strong>Mandelbrot set Explorer</strong> is an interactive tool designed for in-depth exploration of the Mandelbrot set. Users can zoom in and out to reveal intricate details of the fractal and pan across the complex plane to examine different regions. A red cursor marks the point of interest, allowing users to identify the period of the area it targets.
</p>
<p>
One of the key features of the explorer is its dynamic adjustment of the maximum number of iterations based on the zoom level. As users zoom deeper into the set, the iteration count automatically increases, ensuring a detailed and accurate visualization of the fractal's structure at every level.
</p>
<p>
This interactive component offers an engaging way to explore the mathematical beauty of the Mandelbrot set, enabling users to uncover its complexity and periodic structures with ease.
</p>
</div>
</div>
<div class="card card-primary collapsed-card">
<div class="card-header">
<h3 class="card-title">Description</h3>
<div class="card-tools">
<button type="button" class="btn btn-tool" data-card-widget="collapse"><i class="fas fa-plus"></i>
</button>
</div>
</div>
<!-- /.card-header -->
<div class = "card-body" id="descriptionContainer">
<p>
<ul>
<li>
<strong>Red Dot:</strong> Located at the center of the canvas, it marks the point of interest.
</li>
<li>
<strong>Real Part of the Centre:</strong> Coordinates of the red dot on the real axis.
</li>
<li>
<strong>Imaginary Part of the Centre:</strong> Coordinates of the red dot on the imaginary axis.
</li>
<li>
<strong>Rendering Time:</strong> Displays the time taken to render the visualization.
</li>
<li>
<strong>Zoom:</strong> Indicates the zoom level.
</li>
<li>
<strong>Max Iterations:</strong> The maximum number of iterations used in the rendering process.
</li>
<li>
<strong>Period:</strong> The period of the point \( c \) targeted by the red dot.
</li>
<li>
<strong>Zoom In Button:</strong> Increases the zoom level for a closer view.
</li>
<li>
<strong>Zoom Out Button:</strong> Decreases the zoom level for a wider view.
</li>
<li>
<strong>Reset Button:</strong> Resets the view to the default position.
</li>
</ul>
</p>
</div>
</div>
<!-- Map card -->
<div class="card bg-gradient-primary interactive">
<div class="card-header border-1">
<div class="options container">
<div class="row mx-auto" style="max-width:70%">
<div class="col-md-6">
<div class="mb-3">
<label for="centerRe" class="form-label">Real part of the centre:</label>
<input id="centerRe" type="text" class="form-control form-control-sm" placeholder="0.0" style="min-width: 150px; max-width: 250px;">
</div>
</div>
<div class="col-md-6">
<div class="mb-3">
<label for="centerIm" class="form-label">Imaginary part of the centre:</label>
<input id="centerIm" type="text" class="form-control form-control-sm" placeholder="0.0" style="min-width: 150px; max-width: 250px;">
</div>
</div>
</div>
<div class = "row justify-content-between">
<div class = "col-12 col-sm-6">
<div id="renderTime" class="">Rendereing time: 0 ms</div>
<div id="zoomInfo" class="">Zoom: 1x</div>
<div id="iterationInfo" class="">Max Iterations: 100</div>
<div id="periodInfo">Period: N/A</div>
</div>
<div class="col-12 col-sm-6 row justify-content-end mb-0 align-items-end">
<div class="col-auto">
<button type="button" class="btn btn-outline-dark" id="zoomIn" style = "padding-bottom: 10px">
<img src="dist/img/zoom-in.png" style = "max-height: 20px;">
</button>
</div>
<div class="col-auto">
<button type="button" class="btn btn-outline-dark" id="zoomOut" style = "padding-bottom: 10px">
<img src="dist/img/zoom-out.png" style = "max-height: 20px;">
</button>
</div>
<div class="col-auto">
<button type="button" class="btn btn-outline-dark px-3 pr-0" id="resetView" style = "padding-bottom: 10px"><strong> Reset </strong></strong></button>
</div>
</div>
</div>
</div>
</div>
<div class="card-body" style = "display: flex; justify-content: center; padding-bottom: 15px">
<canvas class = "col-12 mandelbrot" style = "background-color: aliceblue; padding: 0; max-width: 800px; max-height: 800px" height="800px" width="800px">The browser doesn't support the canvas element</canvas>
<script src = "scripty/mandelbrotZoom.js"></script>
</div>
</div>
<!-- /.card-body-->
</div>
<!-- /.card -->
</section>
<!-- right col -->
</div>
<!-- /.row (main row) -->
</div><!-- /.container-fluid -->
</section>
<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<footer class="main-footer text-center">
<strong>Copyright © 2024 Jan Macharáček</strong>
All rights reserved.
</footer>
<!-- Control Sidebar -->
<aside class="control-sidebar control-sidebar-dark">
<!-- Control sidebar content goes here -->
</aside>
<!-- /.control-sidebar -->
</div>
<!-- ./wrapper -->
<!-- jQuery -->
<script src="plugins/jquery/jquery.min.js"></script>
<!-- Bootstrap 4 -->
<script src="plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- AdminLTE App -->
<script src="dist/js/adminlte.js"></script>
</body>
</html>