// Dartmouth CS 2, Winter 2009, Chris Bailey-Kellogg // Notes 14 | Sketch 1 // Based on Greenberg Appendix A-13 BoxSpring[] springs = new BoxSpring[50]; void setup() { size(400,300); smooth(); noStroke(); background(0); rectMode(CENTER); // Evenly space the springs across the window, // with a bit of margin (25 on each side) float boxW = (width-50.0)/springs.length, boxH=50; float x0 = 25 + boxW/2.0; for (int i=0; i