xxxxxxxxxx
31
// test capture sizeing with a ( very old ) USB cam
// draw to HTML
/*
var video;
function setup() {
createCanvas(500, 400);
video = createCapture(VIDEO);
video.size(100, 100);
}
function draw() {
}
*/
// draw to CANVAS
var video;
function setup() {
createCanvas(500, 500);
video = createCapture(VIDEO);
//video.size(100, 100);
video.hide();
}
function draw() {
background(200,200,0);
//image(video, 0, 0, width, width * video.height / video.width);
image(video, 50, 50,100,100);
}