-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
55 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
55
<!--Go to chrome://flags and enable "Experimental Web Platform features"-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Censorship</title>
<link rel="stylesheet" href="../../base.css">
</head>
<body>
<div class="controls">
<label for="SCALE">SCALE: </label>
<input value="1.35" type="range" name="SCALE" min="0.3" max="3" step="0.1">
<label for="SIZE">SIZE: </label>
<input value="10" type="range" name="SIZE" min="1" max="100" step="1">
</div>
<div class="wrap">
<video class="webcam"></video>
<canvas class="video"></canvas>
<canvas class="face"></canvas>
</div>
<script src="pixelated.face.js"></script>
<style>
* {
box-sizing: border-box;
}
body {
margin: 0;
}
.wrap {
position: relative;
min-height: 100vh;
display: grid;
justify-content: center;
align-items: center;
}
.wrap>* {
grid-column: 1;
grid-row: 1;
}
.face {
position: absolute;
}
</style>
</body>
</html>