-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
20 lines (20 loc) · 1.05 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html>
<html lang="en">
<head>
<title>Tangram</title>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"/>
<link rel="icon" href="favicon.ico" type="image/x-icon"/>
<style>
body { margin: 0px; overflow: hidden; }
button:focus { outline:0 !important; }
</style>
</head>
<body>
<div id="container"></div>
<script>
var SNAPSHOT = {"dissection":{"id":1,"vertices":[[-0.5,-0.5],[-0.5,0.5],[0.0,0.0],[0.5,0.5],[0.5,0.0],[0.25,0.25],[0.25,-0.25],[-0.25,-0.25],[0.0,-0.5],[0.5,-0.5]],"polygons":[[0,1,2],[2,1,3],[3,4,5],[5,4,6,2],[2,6,7],[7,6,8,0],[8,4,9]]},"transforms":[[0.33330000000000004,0.5,180.0],[0.6667000000000001,0.5,90.0],[0.75,1.0833000000000002,270.0],[0.25,1.0,0.0],[0.0833,0.75,270.0],[0.4763,1.3946,75.0],[0.8333,0.8333,90.0]],"backgroundColor":[254,254,254],"foregroundColors":[[86,165,150],[52,82,91],[159,187,185],[205,96,84],[240,182,67],[249,230,198],[234,192,142]]};
</script>
<script src="js/scene.js" type="module"></script>
</body>
</html>