int total = 10;//Number of rectangles color l= color(0); //These two should be different color bg=color(255); void setup() { size(1920, 1200); noLoop(); } void draw() { //Clear previous drawing background(bg); stroke(l); //Select new shades color a = color(random(255), random(255), random(255)), b = color(random(255), random(255), random(255)); //Draw rectangles for (int i=0; i