-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
42 lines (32 loc) · 1 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
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>Hilbert Curve Painting</title>
<link rel="stylesheet" href="./css/normalize.css">
<link rel="stylesheet" href="./css/style.css">
</head>
<body>
<html>
<main class="main">
<h1>Hilbert Curve Rendering</h1>
<p>Render Images using only one line using the <a href="https://en.wikipedia.org/wiki/Hilbert_curve">Hilbert space-filling curve</a> </p>
<div class="container">
<canvas id="canvas" width="400" height="400"></canvas>
<div>
<label for="image-upload" class="image-upload">
Upload Image
</label>
<input id="image-upload" type="file" accept="image/*" onchange="uploadImage(event)" >
<button id="reset" onclick="defaultImage()">Reset</button>
</div>
</div>
<h2>More Examples</h2>
<div class="container">
<canvas id="canvas2" width="400" height="400"></canvas>
</div>
</main>
</html>
</body>
<script src="./js/script.js"></script>
</html>