-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
48 lines (41 loc) · 1.49 KB
/
index.html
File metadata and controls
48 lines (41 loc) · 1.49 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PinPortrait</title>
<link rel="stylesheet" href="src/styles/styles.css">
</head>
<body>
<!-- Hidden sampling canvas (not the Three.js renderer canvas) -->
<canvas id="canvas"></canvas>
<!-- Hidden webcam video source -->
<video></video>
<!-- HUD: live stats -->
<div id="hud">
<span id="hud-fps">FPS: --</span>
<span id="hud-size">Size: 8px</span>
<span id="hud-threshold">Threshold: 10</span>
</div>
<!-- Key hint bar at bottom -->
<div id="hints">
<kbd>+</kbd><kbd>-</kbd> Pixel size
<kbd>[</kbd><kbd>]</kbd> Threshold
<kbd>S</kbd> Screenshot
</div>
<!-- Screenshot flash overlay -->
<div id="flash"></div>
<!-- Webcam error overlay -->
<div id="error-overlay">
<div id="error-box">
<div id="error-icon">◉</div>
<h2>Camera Unavailable</h2>
<p id="error-msg">Could not access your webcam. Check browser permissions and try again.</p>
<button id="retry-btn">Retry</button>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/three@0.128.0/examples/js/controls/OrbitControls.js"></script>
<script src="src/javascript/sketch.js"></script>
</body>
</html>