Skip to content

Commit fb6cf52

Browse files
link to FWCV
1 parent 4abad1c commit fb6cf52

File tree

3 files changed

+63
-12
lines changed

3 files changed

+63
-12
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22

33
A threejs / WebGL / MediaPipe-powered interactive demo that allows you to control create and move 3D shapes using hand gestures in real-time.
44

5-
<img src="demo.png">
5+
[Video](https://youtu.be/oE3a0ghsrBk?si=UCcnjHjpWj21bBA0) | [Live Demo](https://collidingscopes.github.io/shape-creator-tutorial/) | [More Code & Tutorials](https://www.funwithcomputervision.com/)
66

7-
## Demo
7+
<img src="demo.png">
88

9-
Try the live demo: [https://collidingscopes.github.io/shape-creator-tutorial/](https://collidingscopes.github.io/shape-creator-tutorial/)
109

1110
## Requirements
1211

@@ -45,6 +44,11 @@ MIT License
4544

4645
## Related Projects
4746

47+
I've released several computer vision projects (with code + tutorials) here:
48+
[Fun With Computer Vision](https://www.funwithcomputervision.com/)
49+
50+
You can purchase lifetime access and receive the full project files and tutorials. I'm adding more content regularly :)
51+
4852
You might also like some of my other open source projects:
4953

5054
- [Threejs hand tracking tutorial](https://collidingScopes.github.io/threejs-handtracking-101) - Basic hand tracking setup with threejs and MediaPipe computer vision

index.html

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,22 @@
3232
<canvas id="canvas"></canvas>
3333
<div id="three-canvas"></div>
3434
<img id="recycle-bin" src="recyclebin.png" alt="Recycle Bin" />
35-
<div id="instructions">
35+
<div id="instructions" class="text-box">
3636
Bring hands close and pinch to create a shape<br>
3737
> Move hands apart to make the shape larger<br>
3838
Hover over a shape / pinch to move it<br>
3939
Move a shape into the recycle bin to delete it
4040
</div>
41-
<span id="links-para"><a href="https://x.com/measure_plan" target="_blank">Twitter</a> | <a href="https://www.instagram.com/stereo.drift/" target="_blank">Instagram</a> | <a href="https://github.com/collidingScopes/shape-creator-tutorial" target="_blank">Code</a></span>
42-
<span id="coffee-link"><a href="https://buymeacoffee.com/stereodrift" target="_blank">Support my free tutorials & code ❤️</a></span>
41+
42+
<div id="social-links" class="text-box">
43+
<a href="https://www.x.com/measure_plan/" target="_blank">Twitter</a><br>
44+
<a href="https://www.instagram.com/stereo.drift/" target="_blank">Instagram</a><br>
45+
<a href="https://www.youtube.com/@funwithcomputervision" target="_blank">Youtube</a>
46+
</div>
47+
<div id="logo-container" class="text-box">
48+
<span id="logo">🪬</span><br>
49+
<a href="https://www.funwithcomputervision.com/" target="_blank">code & tutorials here</a>
50+
</div>
4351

4452
<script src="https://cdn.jsdelivr.net/npm/@mediapipe/hands/hands.js"></script>
4553
<script src="https://cdn.jsdelivr.net/npm/@mediapipe/camera_utils/camera_utils.js"></script>

styles.css

Lines changed: 45 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,14 @@ body, html {
3232
position: absolute;
3333
top: 5px;
3434
left: 5px;
35-
color: white;
36-
background: rgba(0, 0, 0, 0.5);
37-
padding: 10px 15px;
35+
text-align: left;
36+
/* color: white; */
37+
/* background: rgba(0, 0, 0, 0.5); */
38+
/* padding: 10px 15px; */
3839
/* border-radius: 10px; */
39-
font-family: sans-serif;
40-
font-size: 14px;
41-
z-index: 30;
40+
/* font-family: sans-serif; */
41+
/* font-size: 14px; */
42+
/* z-index: 30; */
4243
}
4344

4445
#links-para{
@@ -63,4 +64,42 @@ a {
6364
font-size: 16px;
6465
background-color: rgba(255, 255, 255, 0.5);
6566
padding: 10px;
67+
}
68+
69+
.text-box {
70+
padding: 8px 15px;
71+
background-color: rgba(255, 255, 255, 0.9);
72+
color: black;
73+
border-radius: 4px;
74+
font-family: "Arial", "Helvetica Neue", Helvetica, sans-serif;
75+
border: 2px solid black;
76+
box-shadow: 3px 3px 0px black;
77+
font-size: clamp(13px, 2vw, 15px);
78+
text-align: center;
79+
z-index: 200;
80+
opacity: 1;
81+
transition: opacity 0.3s ease-in-out, bottom 0.3s ease-in-out, box-shadow 0.2s ease;
82+
}
83+
84+
85+
#social-links {
86+
position: absolute;
87+
bottom: 10px;
88+
left: 10px;
89+
}
90+
91+
#logo-container {
92+
position: absolute;
93+
top: 10px;
94+
right: 10px;
95+
}
96+
97+
#video-link {
98+
position: absolute;
99+
top: 10px;
100+
left: 10px;
101+
}
102+
103+
#logo {
104+
font-size: 2em;
66105
}

0 commit comments

Comments
 (0)