Skip to content

Commit 946107c

Browse files
committed
scripts up to date, camera is not switching
1 parent 7467886 commit 946107c

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Scripts/camScript.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function anotheEffectForCamera() {
1818

1919
noStroke();
2020

21-
// fill(redVal, greenVal, blueVal, 150); // face becomes lit up, the rest is transparent
21+
fill(redVal, greenVal, blueVal, 150); // face becomes lit up, the rest is transparent
2222
// fill(redVal, greenVal, blueVal); // face becomes lit up, the rest is transparent
2323

2424
// tint(255, 255, 255, 100);
@@ -28,6 +28,13 @@ function anotheEffectForCamera() {
2828
}
2929
}
3030

31+
function turnOffCamera(){
32+
myCamera.stop();
33+
localstream.stop();
34+
background(0, 50);
35+
36+
}
37+
3138
function renderCamera() {
3239

3340
//coment for only see pixels
@@ -42,7 +49,7 @@ function renderCamera() {
4249

4350
if (cameraVideo) { //under video
4451
// console.log('camera VIdeo');
45-
image(myCamera, 0, 0, width, height); //size and position of video // COMENTED FOR PIXELS
52+
// image(myCamera, 0, 0, width, height); //size and position of video // COMENTED FOR PIXELS
4653
// filter(INVERT);
4754
// filter(POSTERIZE, 3);
4855
// filter(BLUR, 3);

0 commit comments

Comments
 (0)