int pxoffset = 350; int px = pxoffset; int py = 350; int numPix = 10000; Pix[] pixx = new Pix[numPix]; int framecount = 0; PImage bg; void setup(){ size(800, 800); background(0); frameRate(12); // load and set image bg = loadImage("blauwgroen.gif"); bg.loadPixels(); // calculate amount of px int bgPx = bg.width*bg.height; // iterate every colour trough image for(int i = 0; i