Skip to content

Commit 1b20a08

Browse files
author
Jianbin Qi
committed
delete exit() function
delete exit() function
1 parent cfb2e2f commit 1b20a08

File tree

5 files changed

+1
-21
lines changed

5 files changed

+1
-21
lines changed

examples/CameraMask/CameraMask.pde

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,3 @@ void draw(){
2626
img.mask(mask);
2727
image(img, width / 2, height / 2);
2828
}
29-
30-
void exit(){
31-
ac.exit();
32-
}

examples/CameraMusic/CameraMusic.pde

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,4 @@ void draw(){
2828
float level = audio.mix.level() * 5;
2929
img.resize((int) (width * level), (int) (height * level));
3030
image(img, width / 2, height / 2);
31-
}
32-
33-
void exit(){
34-
ac.exit();
3531
}

examples/PhoneCamera/PhoneCamera.pde

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,12 @@ AndroidCapture ac;
44
PImage img;
55

66
void setup() {
7-
size(1280, 720);
7+
size(720, 480);
88
ac = new AndroidCapture(width, height, 30);
99
ac.start();
1010
}
1111

1212
void draw() {
1313
img = ac.getPImage();
1414
image(img, 0, 0);
15-
}
16-
17-
void exit() {
18-
ac.exit();
1915
}

examples/PhoneColor/PhoneColor.pde

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,4 @@ void draw(){
1717
int c = ac.getColor();
1818
fill(c);
1919
ellipse(0, 0, 300, 300);
20-
}
21-
22-
void exit(){
23-
ac.exit();
2420
}

examples/PhonePixel/PhonePixel.pde

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,4 @@ void draw(){
3131
popMatrix();
3232
}
3333
}
34-
}
35-
36-
void exit(){
37-
ac.exit();
3834
}

0 commit comments

Comments
 (0)