-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
53 lines (52 loc) · 1.64 KB
/
Copy pathindex.html
File metadata and controls
53 lines (52 loc) · 1.64 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>quickHull</title>
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.9.0/p5.min.js"></script> -->
<script src="p5.js"></script>
<script src="canvas.js" defer></script>
<script src="utilities.js"></script>
<script src="animation.js"></script>
<script src="quickHullLogic.js"></script>
<style>
body {
color: white;
background-color: black;
margin: 0; /* Remove default margin to make the body fill the entire viewport */
}
.main-container {
display: flex;
flex-direction: row;
height: 100vh; /* 100% of the viewport height */
}
.container-item {
display: flex;
flex-direction: column;
align-items: center; /* Center vertically */
justify-content: center; /* Center horizontally */
flex: 1; /* Grow and shrink equally */
}
#canvas {
border: 2px solid white;
border-radius: 5px;
}
</style>
</head>
<body>
<div class="main-container">
<div class="container-item">
<div id="canvas"></div>
</div>
<div class="container-item">
<p id="microSteps">Micro steps: OFF</p>
<p>molto bene</p>
<p id="step"></p>
<p>Worst case time complexity: Θ(N^2)</p>
<p>Average case time complexity: Θ(N log N)</p>
<p>Best case time complexity: Θ(N log N)</p>
<p>Space complexity: Θ(N)</p>
</div>
</div>
</body>
</html>