-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfractal.html
47 lines (35 loc) · 975 Bytes
/
fractal.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>
Starcross - Fractal Generator
</title>
<style>
.fractal_canvas {
width:1024px;
position:absolute;
left:0;
right:0;
margin-right:auto;
margin-left:auto;
margin-top: 64px
}
</style>
</head>
<body>
<div id="overlay">
<h2>Fractal Generator</h2>
<div id="controls">
<label id="zoom_label">Drag an area to zoom in</label>
<input id="reset" type="button" value="Reset">
</div>
</div>
<canvas id="fractal" style="z-index:1" class="fractal_canvas"
width="1024" height="585"></canvas>
<canvas id="zoom_overlay" class="fractal_canvas"
style="z-index:2;opacity: 0.4; cursor: crosshair;"
width="1024" height="585"></canvas>
<script src="fractal.js"></script>
</body>
</html>