// Iteration of Friedrich Foerstner // This one searches for a fixed situation. void setup(){ size(100,100); 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(); }