-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
79 lines (73 loc) · 1.79 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Green Screen</title>
<link
href="https://fonts.googleapis.com/css2?family=Roboto&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="./style.css" />
</head>
<body>
<!-- partial:index.partial.html -->
<script src="./gsAlgo.js"></script>
<h1>Chromakey on Images</h1>
<div id="canvasCont">
<canvas id="canFg" width="500" height="300"></canvas>
<canvas id="canBg" width="500" height="300"></canvas>
</div>
<br />
<br />
<div id="fgFileChoose">
<label for="fginput">Choose Foreground Image</label>
<input
type="file"
multiple="false"
accept="image/*"
id="fginput"
class="inputfile"
onchange="uploadFg()"
/>
</div>
<div id="bgFileChoose">
<label for="bginput">Choose Background Image</label>
<input
type="file"
multiple="false"
accept="image/*"
id="bginput"
class="inputfile"
onchange="uploadBg()"
/>
</div>
<div id="buttons-sliders">
<input
type="button"
id="compositeBtn"
value="Create Composite"
onclick="makeComposite()"
/>
<div id="slider-style">
Green Threshold:
<input
type="range"
id="slider"
max="255"
min="200"
value="200"
onchange="makeComposite()"
/>
</div>
<input type="button" id="clearBtn" value="Clear" onclick="clearAll()" />
<input
type="button"
id="downloadBtn"
value="Download Composite"
onclick="downloadImg()"
/>
</div>
<!-- partial -->
<script src="./script.js"></script>
</body>
</html>