boolean n[]; int maxn; int k; float diam; void setup() { diam = 20; size(600, 600); frameRate(1); maxn = ceil(width/diam)*ceil(height/diam); // make this instead based on width, height, diam n = new boolean [maxn]; for (int i=0; i=maxn) stop(); } void circle(float x, float y, float diam, color back, color text, String msg, boolean bright) { noStroke(); ellipseMode(CENTER); colorMode(HSB); if (bright) fill(back); else fill(0); // make this a different color add arg to func? ellipse(x, y, diam, diam); textSize(diam*0.4); // make text size scale with diam textAlign(CENTER, CENTER); fill(text); text(msg, x, y); }