Week 4: Ran­d­o­m­n­e­s­s

by Gawshika Aumkaran
  • Show Sketch
/** @peep sketchcode */
 
  size(1000, 650);
  float r = random(60, 200);
  float g = random(60, 200);
  float b = random(60, 200);
  background(r, g, b);
 
smooth();
noFill ();
noStroke();
 
for (int x = 20; x < width; x +=20) {
for (int y = 20; y < height; y +=50) {
      float r1 = random(20,70);
      fill(255, random(50));
      rect(x,random(y),random(r1),r1);
    }
}

Comments

Nobody has said anything yet.