Pixelated CAM is a code which graps a part of the WEB cam and expands it into vertical lines creating a imaged inspired by the abstraction americain, looking to recreate a portrait in an abstract way with code used by artist like rothko or delaunay, and transforming them into a virtual and digital form.
Here are 3 shots screens taken using the code:
down here the complet code
import processing.video.*;
Capture cam;
void setup() {
size(600, 750);
String[] cameras = Capture.list();
if (cameras.length == 0) {
println(“There are no cameras available for capture.”);
exit();
} else {
println(“Available cameras:”);
for (int i = 0; i < cameras.length; i++) {
println(cameras[i]);
}
// The camera can be initialized directly using an
// element from the array returned by list():
cam = new Capture(this, cameras[0]);
cam.start();
filter(INVERT);
}
}
void draw() {
if (cam.available() == true) {
cam.read();
}
for (int i = 0; i <= width; i++) {
color theColor = cam.get(mouseX, i);
stroke(theColor);
line(i, 0, i, height);
}
image(cam, 10000, 5000);
}