nay­n­2­9­4­7

by - Nay Min Thu
  • Show Code
/** @peep sketch */
 
void setup() {
  size(400, 400);
  background(0);
  colorMode(HSB);
  translate(width/2, height/2);
  float s = random (2,4)
  scale(1.0/s);
  for (int i = 0; i < 10; i++) {
    shape();
    rotate(radians (45));
  }
}
 
void shape() {
  noFill()
  stroke(random(255), 255, 255)
  strokeWeight(5);
  ellipse(80, 80, 72, 72);
  ellipse(220, 50, 90, 90);
  rect(320, 50, 50, 50);
  noFill();
  for (int d = 10; d < 300; d += 20) {
  ellipse(250, 350, d, d);
   rect(100, 100, 72, 72);
  }
}

Comments

Nobody has said anything yet.