-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
137 lines (128 loc) · 3.9 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link rel="stylesheet" href="./node_modules/modern-css-reset/dist/reset.min.css" />
<link rel="stylesheet" href="./src/styles.css" />
<title>getUserMedia</title>
</head>
<body>
<video id="video" controls autoplay height="100"></video>
<div class="canvas-container">
<div class="canvas-wrapper">
<img class="background-image" src="./assets/palms_ocean_beach.jpg" alt="caribbean island" />
<canvas class="canvas" id="canvas"></canvas>
</div>
</div>
<form class="rgb-form" id="form">
<fieldset name="controls">
<legend>Control</legend>
<label>
<input type="checkbox" id="on-off" />
on/off
</label>
</fieldset>
<fieldset name="adjust">
<legend>Adjust</legend>
<label>
<input type="range" min="-100" , max="100" step="1" value="0" />
brightness
</label>
<label>
<input type="range" min="-100" , max="100" step="1" value="0" />
contrast
</label>
<label>
<input type="range" min="-100" , max="100" step="1" value="0" />
saturation
</label>
<label>
<input type="range" min="-100" , max="100" step="1" value="0" />
hue
</label>
<label>
<input type="range" min="-100" , max="100" step="1" value="0" />
vibrance
</label>
</fieldset>
<fieldset name="color">
<legend>Color</legend>
<label>
<input type="radio" name="color-mode" value="color" checked />
color
</label>
<label>
<input type="radio" name="color-mode" value="grayscale" />
grayscale
</label>
<label>
<input type="radio" name="color-mode" value="chroma-key" />
chroma key
</label>
</fieldset>
<fieldset name="grayscale">
<legend>Grayscale Strategy</legend>
<label>
<input type="radio" name="grayscale-strategy" value="mix" checked />
mix
</label>
<label>
<input type="radio" name="grayscale-strategy" value="red" />
red
</label>
<label>
<input type="radio" name="grayscale-strategy" value="green" />
green
</label>
<label>
<input type="radio" name="grayscale-strategy" value="blue" />
blue
</label>
</fieldset>
<fieldset name="color-channels">
<legend>Color mixer</legend>
<label>
<input type="range" min="0" , max="2" step="0.05" value="1" />
red
</label>
<label>
<input type="range" min="0" , max="2" step="0.05" value="1" />
green
</label>
<label>
<input type="range" min="0" , max="2" step="0.05" value="1" />
blue
</label>
<label>
<input type="range" min="0" , max="1" step="0.05" value="1" />
alpha
</label>
</fieldset>
<fieldset name="chroma-key">
<legend>Chroma key</legend>
<label>
<input type="color" value="#00FF00" />
</label>
<label>
<input type="range" min="0" , max="1" step="0.01" value="0.16" />
hue
</label>
<label>
<input type="range" min="0" , max="1" step="0.01" value="0.16" />
saturation
</label>
<label>
<input type="range" min="0" , max="1" step="0.01" value="0.16" />
lightness
</label>
</fieldset>
<fieldset>
<legend>Ctrl</legend>
<button type="reset">reset</button>
</fieldset>
</form>
<script src="./src/index.js"></script>
</body>
</html>