Cir­c­l­e­s Int­r­o­d­u­c­e­d

by Julia Spyrou
  • Show Sketch
/** @peep sketchcode */
 
void setup() {
size(400, 300);
background(0);
noFill();
for (int i = 0; i < 10; i++) {
  float x = random(width);
  float y = random(height);
circles(x, y);
ellipses();
noises();
}
}
 
//function to call circles
void circles(x, y) {
  stroke(random(255), random(255), random(255), random(150));
  fill(random(255), random(255), random(255), random(10));
for (int d = 10; d < 100; d += 5) {
  ellipse(x, y, d, d);
 }
}
//function to call ellipses()
void ellipses() {
stroke(random(255), random(255), random(255), random(100));
strokeWeight(random(20));
fill(random(255), random(255), random(255), random(0));
for (int y=5; y<height; y+=50) { //for loop to position the circles
  for (int x=5; x<width; x+=40) {
    ellipse(random(x-5), y+5, 10, random(50));
  }
}
}
// function to call noise()
void noises() {
strokeWeight(1);
float inc = 0.1; 
stroke(random(300), random(300), random(300), random(300), 20);
fill(255, 60); 
noiseSeed(0); 
for (int x = 0; x < width; x += 4) { 
  float n = noise(x * inc) * 70.0; 
  rect(x, random(50,80 + n), 3, random(40)); 
}
}

Comments

Nobody has said anything yet.