// Iteration of Friedrich Foerstner // This one let's the pixels search both up and down, hence they move all over in a higher detail. void setup(){ size(500,500); frameRate(30); } void draw() { loadPixels(); for(int x = 0; x0 && y_new < height && y_new>0) { int dest_pixel = (y_new*width + x_new); color c = pixels[y*width+x]; if(c == #FFFFFF){ pixels[dest_pixel] = #000000; } else { pixels[dest_pixel] = #FFFFFF; } } } } updatePixels(); }