-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
45 lines (35 loc) · 1.79 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mandelbrot Set</title>
<link rel="stylesheet" href="style.css">
<script src="js/mandelbrot.js" defer></script>
</head>
<body>
<h1>Mandelbrot Set</h1>
<p>Click on a point on the complex plane to zoom in on it!</p>
<button onclick="zoomOut()">Click here to Zoom Out!</button>
<div class="canvas-overflow">
<div class="canvas-container">
<canvas id="mandelbrot-canvas" width="700" height="700"></canvas>
</div>
</div>
<button onclick="encodeLocation()">Save the current location in the URL</button>
<h2>Zoom In Speed:</h2>
<label for="zoomInSpeed">Zoom In Speed: </label><input type="number" name="zoomInSpeed" id="zoomInSpeed" value="2"><br>
<h2>Manual Controls:</h2>
<p>Write the translation vector and the zoom, then Restart, then iterate!</p>
<label for="transX">Translate in X direction: </label><input type="number" name="transX" id="transX" value="0"><br>
<label for="transX">Translate in Y direction: </label><input type="number" name="transY" id="transY" value="0"><br><br>
<label for="transX">Zoom: </label><input type="number" name="zoom" id="zoom" value="1"><br>
<button class="restart" onclick="start()">Restart</button><br>
<button onclick="iterate(1)">Do 1 Iteration</button>
<button onclick="iterate(10)">Do 10 Iterations</button>
<button onclick="iterate(100)">Do 100 Iterations</button>
<button onclick="iterate(1000)">Do 1000 Iterations</button>
<p class="made-by">Made by <a href="https://github.com/guilhermebaos" target="_blank" rel="external">Guilherme Baos</a></p>
</body>
</html>