Week 3 Tut­o­r­i­a­l 5

by Jingyi Tang
  • Show Sketch
// Pattern Design
/** @peep sketchcode */
size(500,500);
background(70,7070);
noStroke();
smooth();
 
beginShape();
for (int x=10; x<width; x+=10) {
  for (int y=10; y<height; y+=10) {
    fill(255,204,229,110);
    ellipse(x,y,x/10,y/10);
  }
}
for (int x=100; x<width; x+=10) {
  for (int y=100; y<height; y+=10) {
    fill(255,102,178,80);
    ellipse(x,y,x/30,y/30);
  }
}
 
for (int x=200; x<width; x+=10) {
  for (int y=200; y<height; y+=10) {
    fill(255,0,127,80);
    ellipse(x,y,x/50,y/50);
  }
}
 
endShape();

Comments

Nobody has said anything yet.