import QuickGrab.*; Grab g; int spacing; int segWidth; int maxHeight; int minHeight; int numSegments; int counter; void setup() { // Change this to your screen dimensions size(560, 385, P3D); g = new Grab(this); counter = 0; spacing = 4; segWidth = 2; maxHeight = height; minHeight = 10; noiseSeed(round(random(8000))); numSegments = int(round(width / (spacing + segWidth))); generateLines(); frameRate(45); } void draw() { generateLines(); } void keyPressed () { if(key == TAB) { generateLines(); } } void generateLines() { rectMode(CENTER); noStroke(); background(168, 24, 72); fill(166, 207, 151); float n; float h; int startX = 3; int y = height / 2; noiseDetail(1, 0.001); float noiseScale = 0.05; for(int i = 0; i