-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
51 lines (41 loc) · 1.3 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
<!DOCTYPE html>
<html>
<head>
<title>Mandelbrot</title>
<link rel="stylesheet" href="index.css">
</head>
<body>
<div class="container">
<canvas id="myCanvas" width="600" height="600"></canvas>
<div class="controlers">
<div id="resolution" class="controler">
Resolution: <span class="output">600x600</span> <br>
<input class="control" type="number" value="600">
<button class="send">Update Resolution</button>
</div>
<div id="iterations" class="controler">
Iterations: <span class="output">10</span> <br>
<input class="control" type="range" min="0" max="200" value="10">
</div>
<div id="center" class="controler">
Center: <span class="output">-0.744015 + 0.099i</span> <br>
<input class="control real" type="number" value="-0.744015">
+
<input class="control imag" type="number" value="0.099"> i
<button class="send">Update Center</button>
</div>
<div id="zoom" class="controler">
Zoom: <span class="output">0</span> <br>
<input class="control" type="range" min="0" max="75" value="0" step="0.1">
</div>
<div id="render-time"></div>
</div>
</div>
<!-- WebGL helper functions -->
<script src="webgl.js">
</script>
<!-- Main script -->
<script src="index.js">
</script>
</body>
</html>