float increment = 0.008f; float zoff = 0.00f; float zincrement = 0.0004f; color c; void setup() { size(200,200); frameRate(30); smooth(); } void draw() { //background(100); loadPixels(); float xoff = 0.0f; noiseDetail(5,0.65); for (int x = 0; x < width/2; x++) { xoff += increment; float yoff = 0.0f; for (int y = 0; y < height; y++) { yoff += increment; float bright = noise(xoff,yoff,zoff); if (bright < 0.4) { c = color(50); } else if (bright < 0.7) { c = color(255); } else if (bright < 0.75) { c = color(255,0,0); } else { c = color(50); } pixels[x+y*(width)] = c; pixels[(width-1-x)+(y*width)] = c; } } updatePixels(); filter(BLUR, 0.8); zoff += zincrement; }