Skip to content

Commit a304559

Browse files
committed
update example
Signed-off-by: Umair Khan <[email protected]>
1 parent 7095a8a commit a304559

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

examples/Capture/GettingStartedCapture/GettingStartedCapture.pde

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,14 @@ Capture cap;
99

1010
void setup() {
1111

12-
//size(640, 360, P3D);
12+
size(640, 360, P2D);
1313

1414
cap = new Capture(this);
1515
String[] list = cap.list();
16-
//cap.setCamera(list[0]);
16+
cap.setCamera(list[0]);
17+
cap.start();
1718
}
1819

1920
void draw() {
20-
//image(cap, 0, 0);
21-
}
22-
23-
public String sketchRenderer() {
24-
return P2D;
21+
image(cap, 0, 0);
2522
}

0 commit comments

Comments
 (0)