To coincide with the revelation of using fewer cameras, I have created a simple interaction for people who don't want their content to be discovered - through using a simple switch.
The idea is:
there are a set of generic images (say beach views) being displayed constantly on the screen, but when you want to begin spying on who/whatever, you press a hidden button somewhere on the device to activate those feeds. This should keep your secret a secret (at least for a while...).
So far I have made a code that does such a thing, using some feeds from the other programs:
public static final int NROWS = 1;
public static final int NCOLS = 3;
//List of cameras
String[] goodfeed = new String[3];{
goodfeed[0] = "http://www.coast.ag/webcam/cruise.jpg";
goodfeed[1] = "http://www.st-barths.com/a_cam/view1.jpg";
goodfeed[2] = "http://webcam.raservice.com/cam.jpg";
};
String[] badfeed = new String[3];{
badfeed[0] = "http://brooklyn-bridge.mobotixcam.de/record/current.jpg?rand=380424";
badfeed[1] = "http://stjohnspice.com/spicecam1.jpg";
badfeed[2] = "http://abclocal.go.com/three/kabc/webcam/web1-1.jpg";
};
PImage[] images;
void setup(){
size(1200, 440);
images = new PImage[goodfeed.length];
for (int i = 0 ; i <>
images[i] = loadImage(goodfeed[i]);
}
images = new PImage[badfeed.length];
for (int i = 0 ; i <>
images[i] = loadImage(badfeed[i]);
}
}
void draw(){
int index = 0;
for (int y = 0 ; y <>
for (int x = 0 ; x <>
image(images[index], x * (width / NCOLS), y * (height / NROWS), (width / NCOLS), (height / NROWS));
index++;
}
}
if(keyPressed) {
if (key == 'b' || key == 'B') {
for (int i = 0 ; i <>
images[i] = loadImage(goodfeed[i]);
}
delay(1000);
}
} else {
for (int i = 0 ; i <>
images[i] = loadImage(badfeed[i]);
}
}
}
Wednesday, 6 January 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment