Skip to content

Commit

Permalink
Fixed GettingStartedCapture example
Browse files Browse the repository at this point in the history
  • Loading branch information
codeanticode committed Sep 4, 2022
1 parent 39b635f commit e75ad77
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions examples/Capture/GettingStartedCapture/GettingStartedCapture.pde
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,14 @@ void setup() {
// The camera can be initialized directly using an element
// from the array returned by list():
cam = new Capture(this, cameras[0]);
// Or, the settings can be defined based on the text in the list
//cam = new Capture(this, 640, 480, "Built-in iSight", 30);

// Start capturing the images from the camera
cam.start();

// Or, the camera name can be retrieved from the list (you need
// to enter valid a width, height, and frame rate for the camera).
//cam = new Capture(this, 640, 480, "FaceTime HD Camera (Built-in)", 30);
}

// Start capturing the images from the camera
cam.start();
}

void draw() {
Expand Down

0 comments on commit e75ad77

Please sign in to comment.