-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.htm
59 lines (51 loc) · 1.61 KB
/
index.htm
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Slitscan via webcam demo</title>
<link rel="shortcut icon" href="favicon.ico" />
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<h2>
Slitscan Demo (<a href="http://github.com/qix/webcam-slitscan"
>github.com/qix/webcam-slitscan</a
>)
</h2>
<canvas id="output" width="640" height="480"></canvas>
<canvas id="draw" width="640" height="480"></canvas>
<div id="config">
<div class="config-option">
Choose:
<select id="defaults"> </select>
</div>
<div class="config-option">
Frames:
<select id="frames">
<option value="16">16</option>
<option value="32">32</option>
<option value="64" selected="selected">64</option>
<option value="128">128</option>
<option value="256">256</option>
</select>
</div>
<div class="config-option">
<button id="fullscreen">Fullscreen</button>
</div>
<div class="config-tip">
<span>Drag to draw, right click to erase</span>
</div>
</div>
<div style="display:none;">
<video id="video" autoplay="autoplay"></video>
<canvas id="snapshot"></canvas>
</div>
<div id="status">
<h2>Status</h2>
<div id="status-content">Trying to connect to webcam...</div>
</div>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="underscore.js"></script>
<script type="text/javascript" src="script.js"></script>
</body>
</html>