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

by Giselle Gray
  • Show Sketch
/** @peep sketchcode */
size(200, 200); 
beginShape(); 
for (int y = 120; y <= 180; y += 10) {
  if (y % 20 == 0) {
    vertex(80, y);
  } else {
    ellipse(40, y); 
  }
} 
for (int y = 50; y >= 20; y -= 10) {
  if (y % 20 == 0) {
    ellipse(120, y);
  } else {
    vertex(160, y); 
  }
} 
endShape(CLOSE);

Comments

Nobody has said anything yet.