import CellularAutomata.*; size(200, 200); background(255); int s = 0; for (int f = 1; f < 8; f = f+1) { int[] numbers = {0,0,0,1,0,0,0,0}; cellularAutomata a = new cellularAutomata(numbers); //CA rule110 a.setRule(0,1,1,0,1,1,1,0); a = cellularAutomata.calcCA(a,f); s = a.sizeCA(); for (int i = 0; i < s; i = i+1) { int good = int(a.getNumber(i)); fill(255); if(good == 1) { //When "i" is less than "35"... fill(0); //...set the color to black } ellipse(random(width), random(height), 10, 10); print(good); print(","); } print("\n"); }