Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (21 sloc) 525 Bytes
class Scanner {
Scanner() {
}
private boolean update() {
return true;
}
public void render() {
}
public PImage getWebcam(PImage webcam) {
return webcam;
}
public PImage crushWebcam(PImage webcam, PreviewBox previewBox) {
webcam.loadPixels();
int len = webcam.pixels.length;
for ( int i = 0; i < len ; i++ ) {
webcam.pixels[i] = color(green(webcam.pixels[i]), blue(webcam.pixels[i]), red(webcam.pixels[i]));
}
webcam.updatePixels();
return webcam;
}
}
Something went wrong with that request. Please try again.