-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathindex.html
54 lines (45 loc) · 1.03 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
43
44
45
46
47
48
49
50
51
52
53
54
<html>
<head>
<script src="recorder/javascripts/lib/three.min.js"></script>
<script src="//js.leapmotion.com/leap-0.6.4.js"></script>
<script src="//js.leapmotion.com/leap-plugins-0.1.11.js"></script>
<script src="//js.leapmotion.com/leap.rigged-hand-0.1.4.js"></script>
<!-- override the bundled playback plugin: -->
<script src="build/leap.playback-0.2.1.js"></script>
<style>
body{
font-family: Helvetica;
}
canvas {
position: fixed;
width: 100%;
height: 100%;
top: 0;
left: 0;
}
#debugger{
top: 0;
left: 0;
position: fixed;
background: black;
color: #eee;
padding: 4px;
display: none;
}
</style>
</head>
<body>
<div id="debugger"></div>
<script>
Leap.loop({})
.use('playback', {
recording: 'recorder/recordings/pinch-57fps.json.lz',
requiredProtocolVersion: 6,
pauseOnHand: true,
loop: true
})
.use('riggedHand');
window.controller = Leap.loopController;
</script>
</body>
</html>