-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
97 lines (89 loc) · 3.51 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
<!DOCTYPE html>
<html>
<head>
<title>Mandelbrot</title>
<meta content="Javascript based Mandelbrot and Julia sets explorer." name="description">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/> <!--320-->
<link rel="shortcut icon" type="image/x-icon" href="./mandelbrot.png">
<link href="./styles.css" media="all" rel="stylesheet">
<!-- social platform sharing -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@scttdavs">
<meta name="twitter:creator" content="@scttdavs">
<meta name="twitter:title" content="Javascript Mandelbrot Explorer">
<meta name="twitter:description" content="A javascript-based Mandelbrot Explorer.">
<meta name="twitter:image" content="http://sco.ttdavis.com/mandelbrot/mandelbrot.jpg">
<meta property="og:title" content="Javascript Mandelbrot Explorer">
<meta property="og:url" content="http://sco.ttdavis.com">
<meta property="og:image" content="http://sco.ttdavis.com/mandelbrot/mandelbrot.jpg">
<meta property="og:image:height" content="690">
<meta property="og:image:width" content="1275">
<meta property="og:image:type" content="image/jpeg" />
<meta property="og:site_name" content="Scott Davis">
<meta property="og:description" content="A javascript-based Mandelbrot Explorer.">
<script>
var _gaq = _gaq || [];
_gaq.push(["_setAccount", "UA-9400337-1"]);
_gaq.push(["_trackPageview"]);
(function () {
var e = document.createElement("script");
e.type = "text/javascript";
e.async = !0;
e.src = ("https:" == document.location.protocol ? "https://ssl" : "http://www") + ".google-analytics.com/ga.js";
var t = document.getElementsByTagName("script")[0];
t.parentNode.insertBefore(e, t)
})();
</script>
</head>
<body onload="mandlebrot.m.init()">
<div id="navIcon">
<span></span>
<span></span>
<span></span>
<span></span>
</div>
<div id="controls">
<h1>M<img src="./mandelbrot.png"></h1>
<p><em>Click and drag to zoom in</em></p>
<div class="control">
<label for="maxIterations">max iterations</label>
<input id="maxIterations" type="number" value=50 />
</div>
<div class="control">
<label for="escapeRadius">escape radius</label>
<input id="escapeRadius" type="number" value=5 />
</div>
<div class="control">
<div class="checkbox">
<label for="color">color</label>
<input id="color" type="checkbox" value=false />
<label class="checkbox-label" for="color"></label>
</div>
</div>
<hr>
<div class="control">
<div class="checkbox">
<label for="julia">julia</label>
<input id="julia" type="checkbox" value=false />
<label class="checkbox-label" for="julia"></label>
</div>
<label for="cr">x=?</label>
<input id="cr" type="number" value=-0.123 />
<label for="cy">y=?</label>
<input id="ci" type="number" value=0.745 />
<p class="hint">example: c = x + yi</p>
</div>
<div class="control">
<label>rendered in</label>
<span id="totalTime"></span>
</div>
<button id="download">save image</button>
<button id="reset">reset</button>
</div>
<div>
<canvas id="canvas"></canvas>
<canvas id="canvasOverlay"></canvas>
</div>
<script src="./mandelbrot.js"></script>
</body>
</html>