-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
34 lines (33 loc) · 1.16 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Icosphere</title>
<link rel="stylesheet" href="style.css" />
<link rel="icon" href="#" />
</head>
<body>
<div id="container">
<h1 id="title" class="far">Icosphere Simulator</h1>
<canvas id="glCanvas" width="900" height="900"></canvas>
<h3 id="triangles" class="far">Triangles: 320</h3>
<h3 id="subdivisions" class="far">Subdivisions: 2</h3>
<div id="color"></div>
<h4>Drag to Rotate | Scroll to Zoom <br><br> S - Subdivide <br> D - Un-Subdivide</h2>
</div>
</body>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/gl-matrix-min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@jaames/iro@5"></script>
<script src="icosohedron.js"></script>
<svg height="10" width="10">
<defs>
<g id="hex">
<polygon fill="#222" stroke="white" stroke-width="2"
points="15.66025,12 7,17 -1.66025,12 -1.66025,2 7,-3 15.66025,2"
/>
</g>
</defs>
</svg>
</html>