-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
65 lines (59 loc) · 2.34 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
56
57
58
59
60
61
62
63
<!DOCTYPE html>
<html>
<head>
<title>Photo Booth</title>
<link rel="stylesheet" type="text/css" href="style.css">
<link href="https://fonts.googleapis.com/css?family=Gloria+Hallelujah" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Righteous" rel="stylesheet">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
</head>
<body>
<div class="container">
<h1>PhotoBooth</h1>
<i>Refresh to clear out the filter</i>
<div class="photobooth">
<div>
<button onclick="takePhoto()" class="btn btn-danger">Take Photo</button>
<button onclick="paintToCanvasRE()" name="RE" class="btn btn-primary" >RedEffect</button>
<button onclick="paintToCanvasRGBS()" name="RGBS" class="btn btn-primary" >RGBSplit</button>
<button onclick="paintToCanvasBE()" name="Ocean" class="btn btn-primary" >Ocean</button>
<!-- <button onclick="paintToCanvas()" name="RGBS" class="btn btn-primary">Default</button> -->
</div>
<!--<div class="rgb">
<div class="controls">
<label for="rmin">Red Min:</label>
<input type="range" min=0 max=255 name="rmin">
<label for="rmax">Red Max:</label>
<input type="range" min=0 max=255 name="rmax">
<br>
<label for="gmin">Green Min:</label>
<input type="range" min=0 max=255 name="gmin">
<label for="gmax">Green Max:</label>
<input type="range" min=0 max=255 name="gmax">
<br>
<label for="bmin">Blue Min:</label>
<input type="range" min=0 max=255 name="bmin">
<label for="bmax">Blue Max:</label>
<input type="range" min=0 max=255 name="bmax">
</div>--> <!--Will use this for future green screen effect :) -->
</div>
</div>
<div class="container frame">
<canvas class="photo" style="border: 4px groove blue;"></canvas>
</div>
<video class="player"></video>
<div class="strip"></div>
</div>
<audio class="shutter" src="http://wesbos.com/demos/photobooth/snap.mp3" hidden ></audio>
<script type="text/javascript" src="scripts.js"></script>
</body>
</html>
<style>
h1 {
font-family:'Righteous', cursive;
text-align: center;
font-size: 500%;
text-shadow: 2px 3px 0 black;
color: #4295f4;
}
</style>