int num = 3; int range = 25; int bclr = 1; int bcnt = 0; int rclr = 1; int rcnt = 0; int time = 0; float[] ax = new float[num]; float[] ay = new float[num]; //float c; void setup() { size(800, 600); for(int i = 0; i < num; i++) { ax[i] = width/2; ay[i] = height/2; } frameRate(10); background(225, 250, 250); noStroke(); // for(float c = 250; c < 250; c++); } void draw() { time++; if (time == 7500) { fill(225, 250, 250, 125); rect(0, 0, width, height); time = 0; } // Shift all elements 1 place to the left for(int i = 1; i < num; i++) { ax[i-1] = ax[i]; ay[i-1] = ay[i]; } // Put a new value at the end of the array ax[num-1] += random(-range, range); ay[num-1] += random(-range, range); // Constrain all points to the screen ax[num-1] = constrain(ax[num-1], 0, width); ay[num-1] = constrain(ay[num-1], 0, height); // Draw a line connecting the points for(int i=1; i 1) { // level = level - 1; // int num = int(random(2, 6)); // for(int h=0; h