-
-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathindex.html
More file actions
60 lines (50 loc) · 2.67 KB
/
index.html
File metadata and controls
60 lines (50 loc) · 2.67 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
54
55
56
57
58
59
60
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>MediaPipe / Three.js Shape Creator</title>
<script defer src="https://cloud.umami.is/script.js" data-website-id="eb59c81c-27cb-4e1d-9e8c-bfbe70c48cd9"></script>
<link rel="stylesheet" href="styles.css">
<!-- Primary Meta Tags -->
<meta name="title" content="Shape Creator Tutorial">
<meta name="description" content="create/control 3D shapes with hand gestures">
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://collidingscopes.github.io/shape-creator-tutorial/">
<meta property="og:title" content="Shape Creator Tutorial">
<meta property="og:description" content="create/control 3D shapes with hand gestures">
<meta property="og:image" content="https://raw.githubusercontent.com/collidingScopes/shape-creator-tutorial/main/demo.png">
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:url" content="https://collidingscopes.github.io/shape-creator-tutorial/">
<meta property="twitter:title" content="Shape Creator Tutorial">
<meta property="twitter:description" content="create/control 3D shapes with hand gestures">
<meta property="twitter:image" content="https://raw.githubusercontent.com/collidingScopes/shape-creator-tutorial/main/demo.png">
</head>
<body>
<video id="webcam" autoplay muted playsinline></video>
<canvas id="canvas"></canvas>
<div id="three-canvas"></div>
<img id="recycle-bin" src="recyclebin.png" alt="Recycle Bin" />
<div id="instructions" class="text-box">
Bring hands close and pinch to create a shape<br>
> Move hands apart to make the shape larger<br>
Hover over a shape / pinch to move it<br>
Move a shape into the recycle bin to delete it
</div>
<div id="social-links" class="text-box">
<a href="https://www.x.com/measure_plan/" target="_blank">Twitter</a><br>
<a href="https://www.instagram.com/stereo.drift/" target="_blank">Instagram</a><br>
<a href="https://www.youtube.com/@funwithcomputervision" target="_blank">Youtube</a>
</div>
<div id="logo-container" class="text-box">
<span id="logo">🪬</span><br>
<a href="https://www.funwithcomputervision.com/" target="_blank">code & tutorials here</a>
</div>
<script src="https://cdn.jsdelivr.net/npm/@mediapipe/hands/hands.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@mediapipe/camera_utils/camera_utils.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
</body>
<script src="main.js"></script>
</html>