/** Origin: The Nature of Code, D. Shiffman http://www.shiffman.net/ noiseDteail() is used to control the amplitude and teh amount of contribution of each noise signal Experiment with setting the values and see the effect Mod: Zs. Ruttkay for Processing 1.0.1 20.02.2009 */ float t = 0.0; void setup() { size(200,200); smooth(); frameRate(30); noiseDetail(8,0.5); // the only addtion } void draw() { background(0); float xoff = t; for (int i = 0; i < width; i++) { float y = noise(xoff)*height; xoff += 0.01; stroke(255); line(i,height,i,height-y); } t+= 0.01; } void keyPressed() { if (key=='s') { save("noisegraph2.jpg"); } }