void setup() { size(800, 800); colorMode(RGB); background(20,1,55); noStroke(); smooth(); frameRate(16); } void draw() { int box_height =50; int box_width = 50; int base_color = 50; int y_color = 100; for(int i=0;i<30;i++){ for(int j=0;j<30;j++){ int e = int(random(5)); switch(e){ case 2: float r_color = random(8,y_color); fill(base_color + r_color,10,40); ellipse(j*box_width, i*box_height, box_width, box_height); break; } } } }