int rectX = 0; int newX; PImage chunks; int embarassingVariableName; boolean horixVert = true; int counter = 0; int timeGoal = int(random(100, 500)); int num = 3; int range = 16; float[] ax = new float[num]; float[] ay = new float[num]; float[] bx = new float[num]; float[] by = new float[num]; void setup(){ size(600, 800); smooth(); background(255, 255, 7255); for(int i=0; i timeGoal){counter = 0; timeGoal = int(random(100, 400)); getSetGo();} if(keyPressed){if(key == 'k'){saveFrame("line-####.tif");}} } void mousePressed (){ getSetGo(); } void getSetGo(){ float yesNo = random(1); float stripSize = random(1,10); //horizontalGet if (yesNo > .5){chunks = get(0, int(random(height)), width, int(stripSize));} else //verticalGet {chunks = get(0, int(random(1,height)), width, int(stripSize));} pushMatrix(); translate(random(1,width), random(1,height)); for(float iter = 0; iter < TWO_PI; iter += PI / (stripSize + random(1,6))){ pushMatrix(); rotate(iter); image (chunks,1,1); popMatrix(); } popMatrix(); if(yesNo > .8){ embarassingVariableName = 0; int times = int(random(8)); for(int iter = 0; iter < times; iter++){ chunks = get(0, int(random(height)), width, int(random(50, 500))); int setHereY = int(random(height)); int setHereX = int(random(width)); set(setHereX, setHereY, chunks); set(setHereX + width, setHereY, chunks); set(setHereX - width, setHereY, chunks); } counter = -600; } else{embarassingVariableName = 255;} }