int fc, num = 80, edge = 200; ArrayList ballCollection; boolean save = false; void setup() { size(500, 500); background(0); ballCollection = new ArrayList(); createStuff(); } void draw() { background(0); for (int i=0; i0 && distance < d) { c = (int) map(loc.x, 100, width-100, 0, 360); colorMode(HSB, 360, 100, 100); //stroke(#ffffff,150); stroke(c, 90, 90, 200); line(loc.x, loc.y, other.loc.x, other.loc.y); colorMode(RGB); } } } void display() { noStroke(); fill(255); ellipse(loc.x, loc.y, sz, sz); stroke(255); x2 = width/2 + sin(angle)*220; y2 = height/2 + cos(angle)*220; line(loc.x, loc.y, x2, y2); } }