PImage img;
int boxsize = 3;
void setup() {
img = loadImage("flower.jpg");
size(img.width, img.height);
noStroke();
}
void draw() {
// for (int x=0; x< width; x += boxsize) {
for (int y=0; y < height; y+=boxsize) {
fill( img.get(width/2, y));
rect(0, y, width, boxsize);
}
// }
}
void keyPressed() {
saveFrame("output/image.jpg");
}