class Chip { float angle, radius; // position of the first chip, from center of window float sz; // how big the chip is color clr; int symm; // how many symmetry partners to display boolean on; // display or not? // Turn on the chip, at angle a and radius r, of size z, and including s symmetry partners void place(float a, float r, int z, int s) { on = true; angle = a; radius = r; sz = z; symm = s; clr = color(random(100,255),random(100,255),random(100,255),100); } // Draw the chip and its symmetry partners, rotated by the global angle. void draw(float globalAngle) { if (on) { fill(clr); pushMatrix(); rotate(angle + globalAngle); // Draw main chip and symm copies, at equal rotations. for (int d=0; d