-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmandel.html
28 lines (28 loc) · 1.05 KB
/
mandel.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
<html>
<head>
<meta charset="utf-8">
<title>Canvas Mandelbrot Set</title>
<script type="text/javascript" src="mandel.js"></script>
<link rel="stylesheet" type="text/css" href="mandel.css" />
</head>
<body onload="draw_one();">
<div id=container>
<div id="controls">
<input type="button" name="zoomin" value="zoom+" onClick="zoom_in()">
<input type="button" name="zoomout" value="zoom-" onClick="zoom_out()">
<input type="button" name="reset" value="reset" onClick="reset()">
<input type="button" id="axes_button" name="axes" value="axes on" onClick="toggle_axes()">
</div>
<canvas id="mandel" width="900" height="600"></canvas>
<svg id="axes">
<line x1="0%" y1="50%" x2="100%" y2="50%" stroke-width="1" stroke="red" />
<line x1="50%" y1="0%" x2="50%" y2="100%" stroke-width="1" stroke="red" />
</svg>
<div id=stats>
<div id=nums>(0,0)</div>
<div id=coord>(0,0) (0,0)</div>
<div id=scale>(0)</div>
</div>
</div>
</body>
</html>