Tut­o­r­i­a­l 5 - Dra­w­i­n­g with Pat­t­e­r­n­s

by Rhys Hobbs
  • Show Sketch
/* @peep sketchcode */
size(2000, 2000); 
background(0, 200, 150);
fill(20, 171, 70);
stroke(55, 121, 128);
for (int y = 45; y < height; y += 45) { 
  for (int x = 45; x < width; x += 45) { 
    for (int d = 10; d < 50; d += 5) {
      rect(x, y, d, d);
    }
  } 
}
for (int y = 65; y < height; y+= 65) {
  for (int x = 65; x < width; x += 65) { 
    for (int d = 10; d < 50; d += 5) {
      ellipse(x, y, d, d);
    }
  }
}

Comments

Nobody has said anything yet.