@@ -18,32 +18,34 @@ <h1>webcam fun</h1>
1818
1919 < main >
2020
21- < div class ="controls ">
21+ < div class ="ctrls ">
2222 < fieldset class ="ctrl_camera ">
23- < legend > web cam</ legend >
23+ < legend > cam</ legend >
2424 < button class ="btn_on status success "> On</ button >
2525 < button class ="btn_off status error disabled " disabled > Off</ button >
2626 < button class ="btn_clear disabled " disabled > Clear</ button >
2727 </ fieldset >
2828 < fieldset class ="ctrl_fx ">
29- < legend > f/x:
29+ < legend > <!-- f/x: -->
3030 < select class ="status info " id ="fx ">
3131 < option > Choose effect...</ option >
32- < option value ="colorize "> Colorize</ option >
33- < option value ="split "> Channel Split</ option >
34- < option value ="chroma "> Chroma Key</ option >
32+ < option value ="Colorize "> Colorize</ option >
33+ < option value ="ChannelSplit "> ChannelSplit</ option >
34+ < option value ="ChromaKey "> ChromaKey</ option >
35+ < option value ="Saturate "> Saturate</ option >
36+ < option value ="Pixelate "> Pixelate</ option >
3537 </ select >
3638 </ legend >
3739 < div class ="alert info " id ="msg_cam ">
38- < p > turn web cam "ON" to use video effects</ p >
40+ < p > turn web cam "ON" to see video effects</ p >
3941 </ div >
4042 < div class ="alert info " id ="msg_fx ">
4143 < p > choose a video effect above</ p >
4244 </ div >
4345 < div class ="alert error " id ="msg_err ">
4446 < p > web API < code > navigator.mediaDevices</ code > not supported</ p >
4547 </ div >
46- < table id ="table-colorize ">
48+ < table class =" fx " id ="ctrl_fx_colorize ">
4749 < tbody >
4850 < tr >
4951 < td >
@@ -64,7 +66,7 @@ <h1>webcam fun</h1>
6466 </ tr >
6567 </ tbody >
6668 </ table >
67- < table id ="table-split ">
69+ < table class =" fx " id ="ctrl_fx_split ">
6870 < tbody >
6971 < tr >
7072 < td >
@@ -84,24 +86,24 @@ <h1>webcam fun</h1>
8486 </ tr >
8587 </ tbody >
8688 </ table >
87- < table id ="table-chroma ">
89+ < table class =" fx " id ="ctrl_fx_chroma ">
8890 < tbody >
8991 < tr class ="min ">
9092 < td class ="red ">
9193 < label for ="rmin ">
92- < span > min: < code > 0</ code > </ span >
94+ < span > min: < code class =" value " > 0</ code > </ span >
9395 < input type ="range " value =0 min =0 max =255 name ="rmin ">
9496 </ label >
9597 </ td >
9698 < td class ="green ">
9799 < label for ="gmin ">
98- < span > min: < code > 0</ code > </ span >
100+ < span > min: < code class =" value " > 0</ code > </ span >
99101 < input type ="range " value =0 min =0 max =255 name ="gmin ">
100102 </ label >
101103 </ td >
102104 < td class ="blue ">
103105 < label for ="bmin ">
104- < span > min: < code > 0</ code > </ span >
106+ < span > min: < code class =" value " > 0</ code > </ span >
105107 < input type ="range " value =0 min =0 max =255 name ="bmin ">
106108 </ label >
107109 </ td >
@@ -115,19 +117,19 @@ <h1>webcam fun</h1>
115117 < tr class ="max ">
116118 < td class ="red ">
117119 < label for ="rmax ">
118- < span > max: < code > 0</ code > </ span >
120+ < span > max: < code class =" value " > 0</ code > </ span >
119121 < input type ="range " value =0 min =0 max =255 name ="rmax ">
120122 </ label >
121123 </ td >
122124 < td class ="green ">
123125 < label for ="gmax ">
124- < span > max: < code > 0</ code > </ span >
126+ < span > max: < code class =" value " > 0</ code > </ span >
125127 < input type ="range " value =0 min =0 max =255 name ="gmax ">
126128 </ label >
127129 </ td >
128130 < td class ="blue ">
129131 < label for ="bmax ">
130- < span > max: < code > 0</ code > </ span >
132+ < span > max: < code class =" value " > 0</ code > </ span >
131133 < input type ="range " value =0 min =0 max =255 name ="bmax ">
132134 </ label >
133135 </ td >
@@ -145,9 +147,39 @@ <h1>webcam fun</h1>
145147 </tr> -->
146148 </ tbody >
147149 </ table >
150+ < table class ="fx " id ="ctrl_fx_saturate ">
151+ < tbody >
152+ < tr >
153+ < td >
154+ < label >
155+ < span > saturate:</ span >
156+ < input class ="status info " id ="saturate " type ="number " value =100 min =0 max =200 >
157+ </ label >
158+ </ td >
159+ </ tr >
160+ < tr >
161+ < td > < button class ="btn_apply status success "> Apply</ button > </ td >
162+ </ tr >
163+ </ tbody >
164+ </ table >
165+ < table class ="fx " id ="ctrl_fx_pixelate ">
166+ < tbody >
167+ < tr >
168+ < td >
169+ < label >
170+ < span > pixelate:</ span >
171+ < input class ="status info " id ="pixelate " type ="number " value =0 min =-100 max =100 >
172+ </ label >
173+ </ td >
174+ </ tr >
175+ < tr >
176+ < td > < button class ="btn_apply status success "> Apply</ button > </ td >
177+ </ tr >
178+ </ tbody >
179+ </ table >
148180 </ fieldset >
149181 < fieldset class ="ctrl_strip ">
150- < legend > snapshots </ legend >
182+ < legend > snaps </ legend >
151183 < label class ="" for ="limit ">
152184 < input type ="checkbox " id ="limit " class ="" checked >
153185 < span class ="label "> Limit?</ span >
@@ -166,7 +198,7 @@ <h1>webcam fun</h1>
166198
167199 </ main >
168200
169- < audio class ="sound-snap " src ="http://wesbos.com/demos/photobooth/ snap.mp3 " hidden > </ audio >
201+ < audio class ="sound-snap " src ="snap.mp3 " hidden > </ audio >
170202
171203 < script src ="js/utils.js "> </ script >
172204 < script src ="js/scripts.js "> </ script >
0 commit comments