// perlin noise realtime dithering // author: info@toxi.co.uk // 04/09/2003 // dither contrast (0.1 = underexposed ... 1.0 = over exposed float contrast=0.55; // noise scale / stripiness (0.001 = stripes -> 1.0 = dotty) float stripiness=1; float angle; float[] nBuf; int numPixels; void setup() { size(400,400); numPixels=width*height; nBuf=new float[numPixels]; noiseDetail(6,contrast); for(int i=0; i